Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Me again, to report a bug or something that could be improved with the plugin.

Right now, if you set Z elevation in a 3DObject Properties, it is not displayed correctly in Constructs editor preview window. 


For example, I created a 3DShape object (the grey slope) as I use for topology purposes.
Set it's Common properties Z elevation to 32

Then I created a 3D model of stairs, set it's properties Z elevation to 32, yet in preview, the 3DSHAPE renders at 32, the stairs still renders at 0.

In game it works fine, stairs AND grey topology slope are rendered at 32. 


But for a level building point of view it could be complicated if every 3D object is not rendered at the right Z elevation in editor. It's working in the dark.

One idea could be to move the Z elevation setting from Properties to Common so it gets rendered correctly. 


Else maybe there's a way for the editor to render it at the correct z elevation without moving the setting. Don't know.

(2 edits)

An easier way to build levels is to just keep them all at 0 in the editor and set the z elevation for both objects with events at start of layout. Or use hierarchies so you would only need to set 1 objects z elevation. If your going to make objects with higher z elevations, its really hard to see whats happening in the editor or if everything is aligned correctly.

Great tip!

OK, I finally bit the bullet and implemented the newer C3 SDK support for z Elevation, so it should work the same in the editor as runtime. This will require updates to the new Common "Z elevation" property. Details are in the dev log: https://kindeyegames.itch.io/c3-3dobject-alpha/devlog/560185/change-to-zelevatio...

(1 edit)

Thanks a lot ! Sadly there's still a small bug. Now the item renders at twice the Z elevation set. For example I made a small gif. I created two 3D Objects cube, that have a scale of 16. So, If I set a Z Elevation of 16 to one of the cubes, it should render at the height of the first cube. Yet it seems to render at twice that Z Elevation. The 3DObject blue selection square is located at the right position tho. I tried with different scales, but even with a scale of 1, the issue is still there, so it's not scale related. I don't know exactly where the problem is, but there's a x2 somewhere :p. 

Good to notice it's only editor related, in game it renders at the correct Z Elevation. 


We're almost there ! 

Don't be too sad :) We got this! Thanks for the great bug report and gif. It is always so helpful to get detailed reports like this. I am a one person operation for this particular project, so I really rely on good community feedback.

A new version is going up now. Please let me know if it fixes this issue for you.

It works ! Thx again :)