i used a software called blender to make a 3d object and i exported it as .obj but when i used the path C:\Users\Akash\Videos\Video games\cube.obj
and nothing happens...why?
I have a few example files that might help laying around in my dropbox:
https://dl.dropboxusercontent.com/u/471 ... 20Test.zip
One of them was an experiment with loading object position/levels from an image file for easier level editing. Kinda works kinda doesn't haha.
3D diver graphic is a free one from the web.
hmm.. im not a programming whiz so im not quite sure how the "rotatating models" work and the "3d objects" doesnt react to the left and right arrow keys...the one where the question mark boxes move towards you...the 3d boxes work fine but i dont know if the 3d objects are working right to be honest.
besides photoshop...do you know any other programs that you can make 3d objects that will work with construct classic
Photoshop does not do 3D modelling, but you can use Blender, Maya, Autodesk 3DS Max, Sketchup, Wings3D, and more to make OBJ format files.
The examples I sent should work out of the box, with the 3D Models one showing a simple diver who can move around with arrow keys (if not, make sure it's all extracted from the ZIP into a folder, and that the .cap file is outside of the models folder!).
Hope that helps!
it works perfectly fine now for your diver.... but when i try to put in a cube from blender it doesnt work. I put it in a separate folder and use the same path that you did .\Models\cube.obj (i put the cube in the same models folder and the .cap is outside the folder)
Oh I see!
Hmm, that definitely sounds like something not happening right during export of the OBJ then, does it have a texture file generated too? You could also try flipping normals, changing scale to something smaller, or changing the background color to something else.
Might be good to try some other OBJ objects from the web like: http://www.turbosquid.com/Search/3D-Models/free/obj
Develop games in your browser. Powerful, performant & highly capable.
the cube and everything in blender works now....but only if i use it in YOUR project....my project doesn't work
can someone help with this?
It looks like the .mtl isn't loading properly. Try putting your texture for it in the Textures > Front face of properties of the 3D model object.
You also don't have the 3D models in a "Models" folder, so you might want to just change the include to "bear-obj.obj" rather than ".\Models\bear-obj.obj". This also means the .cap AND the .exe of your exported game has to be in the same folder as the 3D models though!
If you want to make more than one 3D model type in the layout, also be sure to create a new 3D model object from the right-click "Insert an Object" menu, as the same object can't have different textures (although they can strangely load different 3D models per instance).
Here's your cap fixed up: https://dl.dropboxusercontent.com/u/4714446/3DFixr.zip