Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
5 registered members (SBGuy, dr_panther, Ayumi, Quad, AndrewAMD), 920 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Bad Mesh size (> 64K faces) #377820
07/16/11 18:07
07/16/11 18:07
Joined: May 2005
Posts: 2,713
Lübeck
Slin Offline OP
Expert
Slin  Offline OP
Expert

Joined: May 2005
Posts: 2,713
Lübeck
Where does this restriction come from?
I would expect the vertex count to be limited by the datatype/size of the indices, which in case of 2byte would be 65536 vertices used by as many triangles as I want. Is there any chance that this could be a bit relaxed in the near future?
And what about 32bit indices?
Are submeshs of models culled sperately if they are big? Do they share their vertexbuffers (it seems so, and probably also the indexbuffer is shared, as the 64k faces restriction is for a complete model, counting all submeshs)?

I am just wondering, as the 64k restriction seems a bit outdated. I currently for example have some water mesh with 64k vertices but about 100k faces, which I would like to use as one mesh, not having to split it into several meshes...

Re: Bad Mesh size (> 64K faces) [Re: Slin] #377824
07/16/11 20:19
07/16/11 20:19
Joined: May 2007
Posts: 2,043
Germany
Lukas Offline

Programmer
Lukas  Offline

Programmer

Joined: May 2007
Posts: 2,043
Germany
I think I remember jcl saying that it is, as you suggest, because of the 2byte indices and the actual limit is actually 65536(-1?).

Re: Bad Mesh size (> 64K faces) [Re: Lukas] #377953
07/18/11 08:42
07/18/11 08:42
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Both vertices and triangles use 2-byte indices and thus are limited to 64K. Most 3D cards today support 32 bit indices, but some old cards don't, that's why we still keep this limitation. Submeshes are just render passes of a mesh, and can not be culled separately.

However, a water mesh with 100K polys should not be a problem - just load it as terrain. Terrain can have an unlimited number of triangles and vertices.

Re: Bad Mesh size (> 64K faces) [Re: jcl] #377954
07/18/11 09:01
07/18/11 09:01
Joined: May 2005
Posts: 2,713
Lübeck
Slin Offline OP
Expert
Slin  Offline OP
Expert

Joined: May 2005
Posts: 2,713
Lübeck
What are triangles indexed for?
The problem with terrain is, that my terrain would need to have a resolution of something like 100kx100k vertices, which I haven´t tried for a long time and can may be created per script, but at least MED when I last tried it was not able to handle terrains with a higher resolution than 1024x1024 or something like that.
Also, I don´t need a plane, but just some rivers to be covered. I could of course masked terrain, but that would still cause way too many vertices to be sent and processed by my graphicscard. And I am also not sure if the terrain LOD would be able to reduce the polycount as much as I would like it to.

Re: Bad Mesh size (> 64K faces) [Re: jcl] #378966
07/28/11 12:31
07/28/11 12:31
Joined: Dec 2008
Posts: 1,218
Germany
Rackscha Offline
Serious User
Rackscha  Offline
Serious User

Joined: Dec 2008
Posts: 1,218
Germany
Originally Posted By: jcl
Both vertices and triangles use 2-byte indices and thus are limited to 64K. Most 3D cards today support 32 bit indices, but some old cards don't, that's why we still keep this limitation. Submeshes are just render passes of a mesh, and can not be culled separately.


Can you tell me the most recent 3DCard that does not support 32bit indices? Just for the interest...and for the question(if to old) of keeping the compatibility o.O.

Greets
Rackscha


MY Website with news of my projects:
(for example my current
Muliplayer Bomberman,
GenesisPrecompiler for LiteC
and TileMaster, an easy to use Tile editor)
Sparetime-Development

Re: Bad Mesh size (> 64K faces) [Re: Rackscha] #378972
07/28/11 13:07
07/28/11 13:07
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
I don't know the most recent card with 16 bit indices, but our legacy support goal is 2006, and several cards and systems back then didn't support 32 bit.

Re: Bad Mesh size (> 64K faces) [Re: jcl] #378980
07/28/11 13:50
07/28/11 13:50
Joined: Jul 2001
Posts: 6,904
H
HeelX Offline
Senior Expert
HeelX  Offline
Senior Expert
H

Joined: Jul 2001
Posts: 6,904
Would it be possible for you, that if a user sets a special flag, that you deactivate that legacy support for 2 byte indices in the engine?

Re: Bad Mesh size (> 64K faces) [Re: HeelX] #379319
08/01/11 08:24
08/01/11 08:24
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Sure, in a future version we will support 32 bit indices, either always or with such a flag.


Moderated by  old_bill, Tobias 

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