3D OBJECTS?

For questions about using Classic.

Post » Thu Sep 03, 2015 7:30 pm

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?
B
20
S
8
G
6
Posts: 71
Reputation: 4,598

Post » Thu Sep 03, 2015 8:46 pm

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.
"Construct 4 lets YOU make advanced games! (but not play them)" Construct Classic - Examples Kit
B
113
S
39
G
17
Posts: 2,184
Reputation: 19,217

Post » Fri Sep 04, 2015 3:50 am

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
B
20
S
8
G
6
Posts: 71
Reputation: 4,598

Post » Fri Sep 04, 2015 11:37 am

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! :)
"Construct 4 lets YOU make advanced games! (but not play them)" Construct Classic - Examples Kit
B
113
S
39
G
17
Posts: 2,184
Reputation: 19,217

Post » Sat Sep 05, 2015 12:23 am

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)
B
20
S
8
G
6
Posts: 71
Reputation: 4,598

Post » Sat Sep 05, 2015 4:53 pm

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
"Construct 4 lets YOU make advanced games! (but not play them)" Construct Classic - Examples Kit
B
113
S
39
G
17
Posts: 2,184
Reputation: 19,217

Post » Mon Sep 07, 2015 2:13 am

the cube and everything in blender works now....but only if i use it in YOUR project....my project doesn't work
[url]https://www.dropbox.com/sh/jiz8u9wwi80j72w/AABCCPW0YiYcxfXNJNraz794a?dl=0[url]
B
20
S
8
G
6
Posts: 71
Reputation: 4,598

Post » Sat Sep 12, 2015 9:23 pm

can someone help with this?
B
20
S
8
G
6
Posts: 71
Reputation: 4,598

Post » Sun Sep 13, 2015 12:19 am

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
"Construct 4 lets YOU make advanced games! (but not play them)" Construct Classic - Examples Kit
B
113
S
39
G
17
Posts: 2,184
Reputation: 19,217


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 3 guests