Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
Download: https://5v3n.itch.io/coppercube-... It has no big use but i need it for my room editor so i made it (it will have more usage than just preview created room) EDIT -fixed: [It has some issues -object loaded is flipped ( and i cant figure out what to do to prevent this -if you know let me know )] Current version works with object with one texture. |
||||
|
@sven thanks for sharing, this is very innovative Maybe you could also put the code into a simple custom obj importer plugin which later could be developed further allowing for things like e.g. random object batch import from specified folder, etc. |
||||
|
Nice one, @sven, if you want I can add an API command that will allow you to load external models. That will be not limited to .obj format only, you probably will be able to load many of the formats that CopperCube already supports. I actually have this in my learning version of CC source, in which I first test the commands and learn how to use them or utilize them. It won't take that much effort to push this into my work environment. |
||||
|
Thanks, Loading an external 3D model by script into game would be very useful. |
||||
|
Yeah, and also you won't require additional empty nodes or existing nodes for modifying the vertex and adding mesh buffer, also, with the command for collision, it will also be possible to have collision for the loaded model as well. right now with your action, there is no collision, even if you turn the collision on for the empties. So, in the next version, you will be able to have collision for your obj loader as well. |
||||
|
Good sven, thanks to share with us! |
||||
|
Hi Sven, Thank you for sharing this - it's very useful. It's seems to me that mirror thing happens because coppercube uses left-handed coordinate system and according to wikipedia obj format uses right-handed. So either z or x axis should be flipped - not sure which one. |
||||
|
But it seems like you're already doing that... |
||||
|
Thanks.. I think i got it to work now.. I was focused on wrong part of code thats why nothing did work and got another issue if first was fixed :D
Now i try to add support for multiple textures so grouped triangles will have different buffer and texture if set. |
||||
|
Now it supports .obj with multiple textures. There is 2 files to download so newest is v3svcOBJ_loader.zip |
|