Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/25/24 10:20
Trading Journey
by howardR. 04/24/24 20:04
M1 Oversampling
by Petra. 04/24/24 10:34
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
5 registered members (SBGuy, Petra, flink, AndrewAMD, 1 invisible), 687 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
How to combine several meshes? #371345
05/20/11 09:41
05/20/11 09:41
Joined: Sep 2004
Posts: 130
Italy
Alessandro Offline OP
Member
Alessandro  Offline OP
Member

Joined: Sep 2004
Posts: 130
Italy
Hello,

I need to create A LOT of meshes, and I need a way to combine them in order to reduce draw-calls.
Is there any built-in way to achieve this in 3DGS?

Thank you for your help!

Re: How to combine several meshes? [Re: Alessandro] #371352
05/20/11 10:29
05/20/11 10:29
Joined: Apr 2008
Posts: 2,488
ratchet Offline
Expert
ratchet  Offline
Expert

Joined: Apr 2008
Posts: 2,488
More precision please !
It is meshes for main level , characters, 3D assets ?

The best way that could suit you , make one mesh of all under your mdeling application and export as one mesh for 3DGS !

Re: How to combine several meshes? [Re: ratchet] #371354
05/20/11 11:10
05/20/11 11:10
Joined: Sep 2004
Posts: 130
Italy
Alessandro Offline OP
Member
Alessandro  Offline OP
Member

Joined: Sep 2004
Posts: 130
Italy
I create models ENTITY (3d models) at runtime, so I cannot merge them in 3D modelers.
I can group meshes (small meshes, 16 or 32 units as bounding box per side) as "sectors" (meshes near to each other, located in the same area).
It is static geometry.


EDIT: they are rocks in low-poly.

Last edited by Alessandro; 05/20/11 11:12.
Re: How to combine several meshes? [Re: Alessandro] #371356
05/20/11 11:37
05/20/11 11:37
Joined: Apr 2008
Posts: 2,488
ratchet Offline
Expert
ratchet  Offline
Expert

Joined: Apr 2008
Posts: 2,488
Have you a screenshot ?
Why the need for creation at runtime ?
I think you can find other solutions by seraching a walkaround !

Re: How to combine several meshes? [Re: ratchet] #371357
05/20/11 11:43
05/20/11 11:43
Joined: Sep 2004
Posts: 130
Italy
Alessandro Offline OP
Member
Alessandro  Offline OP
Member

Joined: Sep 2004
Posts: 130
Italy
No, I need to create an environment at runtime. Absolutely.
My game is enterely procedurally generated.
Want an example? Well, check out the game I already made using Unity3d at:

http://www.massivecreek.com/home/

http://www.massivecreek.com/home/?page_id=231

I need to make the second chapter (another adventure, more complex).
So I was checking 3DGS features to make a game like this.

Thank you.

Re: How to combine several meshes? [Re: Alessandro] #371360
05/20/11 12:10
05/20/11 12:10
Joined: Apr 2008
Posts: 2,488
ratchet Offline
Expert
ratchet  Offline
Expert

Joined: Apr 2008
Posts: 2,488
It looks like some Minecraft similar game using cubes.
There is already a 3DGS thread talking about that sort of cubic world :
Cube framework

There are people using Ogre3D , Jmonkey engine that uses their own code for "Minecraft" like.

Re: How to combine several meshes? [Re: ratchet] #371362
05/20/11 12:14
05/20/11 12:14
Joined: Sep 2004
Posts: 130
Italy
Alessandro Offline OP
Member
Alessandro  Offline OP
Member

Joined: Sep 2004
Posts: 130
Italy
Originally Posted By: ratchet
It looks like some Minecraft similar game using cubes.
There is already a 3DGS thread talking about that sort of cubic world :
Cube framework

There are people using Ogre3D , Jmonkey engine that uses their own code for "Minecraft" like.



Yes I know what you said. But my question is still the same: is there any way to combine small meshes to decrease the number of draw-calls?
Unity3D, for example, uses 2 methods: dynamic batching (automatically performed by the engine at runtime), and static batching (PRO version only :'( )

JME 3 (I know that engine) uses a geometry optimizer (even if I got not good results with it). But JME uses scenegraph, very useful in games like this.

Re: How to combine several meshes? [Re: Alessandro] #371367
05/20/11 13:44
05/20/11 13:44
Joined: Apr 2008
Posts: 2,488
ratchet Offline
Expert
ratchet  Offline
Expert

Joined: Apr 2008
Posts: 2,488
Well i'm not sure A8 can do that.
Or you'll have to code a DLL for it yourself ?
Even more i don't know if batching in real time will not slow the game ?

I'm not strong programmer at all laugh

You should post your question in "Engine" thread, you'll have perhaps some answers ?
Why not reading the manual also , all is in it about the engine.

Re: How to combine several meshes? [Re: ratchet] #371373
05/20/11 13:54
05/20/11 13:54
Joined: Sep 2004
Posts: 130
Italy
Alessandro Offline OP
Member
Alessandro  Offline OP
Member

Joined: Sep 2004
Posts: 130
Italy
Originally Posted By: ratchet
Well i'm not sure A8 can do that.
Or you'll have to code a DLL for it yourself ?


I hope there is a c-script to do that.

Originally Posted By: ratchet
You should post your question in "Engine" thread, you'll have perhaps some answers ?


Ok, I do it. But is it a good idea duplicating the thread? Can JCL move this thread instead?

Originally Posted By: ratchet
Why not reading the manual also , all is in it about the engine.


Done. There is nothing.

Re: How to combine several meshes? [Re: Alessandro] #371377
05/20/11 14:15
05/20/11 14:15
Joined: Jan 2011
Posts: 797
Da wo du nicht bist! Muhahaha!
xxxxxxx Offline
User
xxxxxxx  Offline
User

Joined: Jan 2011
Posts: 797
Da wo du nicht bist! Muhahaha!
look here(i don't follow this thred so i cant say that it is working now, or not): http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=355335#Post355335
maybe you can "copy" your old mesh an add the new to it, u have just merge the vertices(so that you havn't two vertices at one point) and remove the sensless polys. i cant give you an example, sorry. and i don't know how fast it is.
xxxxxxx


Es ist immer wieder erstaunlich, dass Leute die riesen Scripte schreiben die einfachsten sachen nicht können zb. mich mit SIEBEN x zu schreiben! tongue
Page 1 of 2 1 2

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1