Gamestudio Links
Zorro Links
Newest Posts
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
Data from CSV not parsed correctly
by jcl. 04/20/24 08:32
Zorro FIX plugin - Experimental
by jcl. 04/20/24 08:30
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (7th_zorro, 1 invisible), 581 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Bad Meshsize? #227806
09/16/08 08:03
09/16/08 08:03
Joined: Sep 2007
Posts: 658
germany
Tiles Offline OP
User
Tiles  Offline OP
User

Joined: Sep 2007
Posts: 658
germany
I start to get mad with the light and shadow stuff.

None of my meshes accept any light, they don't cast shadow, they don't receive shadow. MDL7 files by the way. Why? There is nothing mentioned in the manual that Meshes cannot cast and receive shadow. But they don't work.

Anyways, so i have reimportet my working (it shows and behaves correct, there was just no shadow) MDL7 landscape mesh into MED, then exported it as FBX, then reimportet into WED. Now the shadowmap stuff started at least to compile. Up to this point:



A mesh with 1000 tris gets blown up to over 64k faces? What the heck is 3DGS doing with my mesh?

So 3DGS can just handle 64000 tris?

And the mainquestion. Is there a working light and shadow solution in 3DGS? I cannot get anything to work here.

Last edited by Tiles; 09/16/08 08:04.

trueSpace 7.6, A7 commercial
Free gamegraphics, freewaregames http://www.reinerstilesets.de
Die Community rund um Spiele-Toolkits http://www.clickzone.de
Re: Bad Meshsize? [Re: Tiles] #227813
09/16/08 09:04
09/16/08 09:04
Joined: Apr 2008
Posts: 585
Austria
Petra Offline
Support
Petra  Offline
Support

Joined: Apr 2008
Posts: 585
Austria
Hi Tiles, there is a simple answer to all your problems: Learn working with a 3D engine, by reading the manual!

First you need to read about that there are different types of entities in the entities chapter. All types have special purposes. For shadows you need level geometry, for terrain you need a terrain entity.

http://manual.conitec.net/wed_entities.htm

And when you get an error you should read in the manual what it means.

http://manual.conitec.net/engineerrors.htm

A mesh of > 64K faces is insanely big, and even if it could be rendered by your 3D card, it would be very slow. Most 3D cards can't render such a mesh size, and no commercial 3D game would use such big meshes, therefore I assume 3DGS forbids you to create such meshes right away. Do not import big terrain as level geometry, rather import it as a terrain entity.

Hope this helps you to soon create levels like a pro!

Re: Bad Meshsize? [Re: Petra] #227816
09/16/08 09:41
09/16/08 09:41
Joined: Sep 2007
Posts: 658
germany
Tiles Offline OP
User
Tiles  Offline OP
User

Joined: Sep 2007
Posts: 658
germany
Thanks Petra smile

Manual is not my only source though. Sometimes better to ask at the forum because it makes some things clearer smile

When a Mesh cannot cast nor receive shadows, what is the cast and receive shadow checkbox good for then?


trueSpace 7.6, A7 commercial
Free gamegraphics, freewaregames http://www.reinerstilesets.de
Die Community rund um Spiele-Toolkits http://www.clickzone.de
Re: Bad Meshsize? [Re: Tiles] #227822
09/16/08 10:11
09/16/08 10:11
Joined: Apr 2008
Posts: 585
Austria
Petra Offline
Support
Petra  Offline
Support

Joined: Apr 2008
Posts: 585
Austria
Hi Tiles, this checkbox is for dynamic shadows. The shadows cast by static lightsources WED are static shadows.

Re: Bad Meshsize? [Re: Petra] #227828
09/16/08 10:39
09/16/08 10:39
Joined: Sep 2007
Posts: 658
germany
Tiles Offline OP
User
Tiles  Offline OP
User

Joined: Sep 2007
Posts: 658
germany
Now things starts to make sense. Many thanks smile


trueSpace 7.6, A7 commercial
Free gamegraphics, freewaregames http://www.reinerstilesets.de
Die Community rund um Spiele-Toolkits http://www.clickzone.de
Re: Bad Meshsize? [Re: Tiles] #227831
09/16/08 11:21
09/16/08 11:21
Joined: Sep 2007
Posts: 658
germany
Tiles Offline OP
User
Tiles  Offline OP
User

Joined: Sep 2007
Posts: 658
germany
Back to my initial question. What the heck is 3DGS doing with my mesh? It has 973 vertices and around 2000 tris. But 3DGS refuses to accept it when light comes in calculation. With meshes not at all. And as Map neither.

I have imported it as FBX, one time the working MDL7 from MED (that one gave me the Bad Meshsize error), another time the original FBX file. Then i started to compile just this mesh. It is still at compiling the original file, at generating lightmaps for around 25000 shadows (2000 tris with 25000 shadows?). And will surely give me again the Bad Meshsize warning.



What is going on here?



Last edited by Tiles; 09/16/08 11:25.

trueSpace 7.6, A7 commercial
Free gamegraphics, freewaregames http://www.reinerstilesets.de
Die Community rund um Spiele-Toolkits http://www.clickzone.de
Re: Bad Meshsize? [Re: Tiles] #227834
09/16/08 11:43
09/16/08 11:43
Joined: Sep 2007
Posts: 658
germany
Tiles Offline OP
User
Tiles  Offline OP
User

Joined: Sep 2007
Posts: 658
germany
I think i got it. It's the mesh size. But not the face count. It's the mesh size in units. Seems that i hit a limit here.

It compiles fine with a scale of 1 (has around a size of 90x90x9 then). But fails as described with a scale of 100 (has around a size of 9000x9000x900 then).

Hmm, but i need it this big. That's not fair smirk

Last edited by Tiles; 09/16/08 11:43.

trueSpace 7.6, A7 commercial
Free gamegraphics, freewaregames http://www.reinerstilesets.de
Die Community rund um Spiele-Toolkits http://www.clickzone.de
Re: Bad Meshsize? [Re: Tiles] #227837
09/16/08 12:07
09/16/08 12:07
Joined: Apr 2008
Posts: 585
Austria
Petra Offline
Support
Petra  Offline
Support

Joined: Apr 2008
Posts: 585
Austria
Map compilers split surfaces into smaller parts when they exceed a certain size, this is called tesselation. Its needed for dynamic lights. This is why your terrain suddenly gets more vertices when its over a certain size.

In the map compiler popup panel you can set the tesselation limit to a higher value. This should solve that problem.

Re: Bad Meshsize? [Re: Petra] #227840
09/16/08 12:21
09/16/08 12:21
Joined: Sep 2007
Posts: 658
germany
Tiles Offline OP
User
Tiles  Offline OP
User

Joined: Sep 2007
Posts: 658
germany
Ah, there it is smile

Many thanks, this solves the problem smile

EDIT: ... and doesn't play together with the multitexture terrainshader. Graphics is something to get mad at in the 3D Gamestudio. But at least now the shadow works ^^

Last edited by Tiles; 09/16/08 12:28.

trueSpace 7.6, A7 commercial
Free gamegraphics, freewaregames http://www.reinerstilesets.de
Die Community rund um Spiele-Toolkits http://www.clickzone.de
Re: Bad Meshsize? [Re: Tiles] #227855
09/16/08 13:34
09/16/08 13:34
Joined: Aug 2003
Posts: 7,439
Red Dwarf
Michael_Schwarz Offline
Senior Expert
Michael_Schwarz  Offline
Senior Expert

Joined: Aug 2003
Posts: 7,439
Red Dwarf
Originally Posted By: Tiles
But fails as described with a scale of 100 (has around a size of 9000x9000x900 then).

Hmm, but i need it this big. That's not fair smirk


you dont need a world THAT big. Start with a smaller project and then go up doing something as big as that.

Alternatively, just make the relative sizes different. The terrain at size 1, and the player at size 0.01, should come out at about the same as if the terrain was a scale of 100.


"Sometimes JCL reminds me of Notch, but more competent" ~ Kiyaku
Page 1 of 2 1 2

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