Gamestudio Links
Zorro Links
Newest Posts
folder management functions
by 7th_zorro. 04/16/24 13:19
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
LPDIRECT3DCUBETEXTUR
E9

by Ayumi. 04/12/24 11:00
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 04/11/24 14:56
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (Ayumi, Quad, rki, 7th_zorro), 450 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
11honza11, ccorrea, sakolin, rajesh7827, juergen_wue
19045 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 3 1 2 3
need Input about Entitys #459806
06/07/16 11:05
06/07/16 11:05
Joined: Mar 2014
Posts: 359
CocaCola Offline OP
Senior Member
CocaCola  Offline OP
Senior Member

Joined: Mar 2014
Posts: 359
Hello,
I wont learn more about Entitys and fps, how it works and hope i can spawn more entitys.
Can you give me more back ground Infos, plase.

Re: need Input about Entitys [Re: CocaCola] #459807
06/07/16 11:17
06/07/16 11:17
Joined: May 2005
Posts: 2,713
Lübeck
Slin Offline
Expert
Slin  Offline
Expert

Joined: May 2005
Posts: 2,713
Lübeck
Entities are these things with a position, orientation, skills, flags and model and some other stuff. The almighty manual will give you some more information.
It works by calling ent_create, but there is also a max entity limit which you can change. But depending on how many you want and what you want them for entities might not be what you want and you should consider particles instead or do your own mesh merging solution.

Re: need Input about Entitys [Re: Slin] #459810
06/07/16 14:12
06/07/16 14:12
Joined: Mar 2014
Posts: 359
CocaCola Offline OP
Senior Member
CocaCola  Offline OP
Senior Member

Joined: Mar 2014
Posts: 359
I want to place many models.
I'm going to use a mesh merging solution to a forest create with Sprites, thank you.
I still remember that justsid told me of a minimum size for the models, which reserves the graphics card per model.
Where can I read something about?

Ich möchte viele Modelle plazieren.
ich werde die Verschmelzung Technik benutzen um einen Wald aus Sprites zu erstellen, danke.
Ich erinnere mich noch, das justsid mir von einer minimal Größe bei den Modellen erzählt hat, die die Grafikkarte pro Modell reserviert, unabhängig davon, wie-viel Speicher das Modell braucht.
Wo kann ich da nachlesen


Last edited by CocaCola; 06/07/16 14:16.
Re: need Input about Entitys [Re: CocaCola] #459816
06/07/16 16:34
06/07/16 16:34
Joined: Mar 2014
Posts: 359
CocaCola Offline OP
Senior Member
CocaCola  Offline OP
Senior Member

Joined: Mar 2014
Posts: 359
this level was on 20 fps,... now, look at picture, thx

Re: need Input about Entitys [Re: CocaCola] #459824
06/07/16 21:14
06/07/16 21:14
Joined: May 2005
Posts: 868
Chicago, IL
Dooley Offline
User
Dooley  Offline
User

Joined: May 2005
Posts: 868
Chicago, IL
There is an Acknex User Magazine article about making a grass/vegetation script that moves the grass along with the player. This way it does not require millions of entities on your level, and it saves your frame-rate. I have used a modified version of this script in my game "Star Explorers," and I'm very happy with the results...

http://www.opserver.de/ubb7/ubbthreads.php?ubb=showgallery&Number=458179

AUM is available online for free here: http://www.coniserver.net/coni_users/web_users/pirvu/aum/aumonline_e/

Use the search feature to look for "Serious Vegetation." I think the script they have in old C-Script, but it's pretty easy to change to Lite-C.

Re: need Input about Entitys [Re: Dooley] #459827
06/08/16 06:57
06/08/16 06:57
Joined: Mar 2014
Posts: 359
CocaCola Offline OP
Senior Member
CocaCola  Offline OP
Senior Member

Joined: Mar 2014
Posts: 359
Hi Dooley!
Your Project is beautiful!
to The Gras, I found only this. Is this right? because it is from the svegetation.wdl but it´s only for one objekt.
Code:
function weaving_grass()
{
	var grass_angles;
	var grass_speed;
	grass_speed = 2 + random(5);
	while (1)
	{
		grass_angles += grass_speed * time; // allow the grass to weave
		my.roll += 0.02 * sin(grass_angles);
		wait (1);
	}
}


Re: need Input about Entitys [Re: CocaCola] #459828
06/08/16 07:22
06/08/16 07:22
Joined: Mar 2014
Posts: 359
CocaCola Offline OP
Senior Member
CocaCola  Offline OP
Senior Member

Joined: Mar 2014
Posts: 359
I have tested the mtl_animTree from the standard shader and it works fine for grras but my 345 trees are one model, the thousends of grases would be to, in one model, maby can animate these seperatly in the frames

Re: need Input about Entitys [Re: CocaCola] #459837
06/08/16 11:33
06/08/16 11:33
Joined: Mar 2011
Posts: 3,150
Budapest
sivan Offline
Expert
sivan  Offline
Expert

Joined: Mar 2011
Posts: 3,150
Budapest
this is where 3DGS performs badly...
345 separate trees are fine if poly count is not high, instead of grass sprites use grass models, they perform much better, you can create groups of grasses within a model, then use animtree shader for everything, and never let them have a while loop, it kills performance, reset their DYNAMIC flag.


Free world editor for 3D Gamestudio: MapBuilder Editor
Re: need Input about Entitys [Re: sivan] #459838
06/08/16 12:49
06/08/16 12:49
Joined: Jul 2008
Posts: 2,107
Germany
rayp Offline

X
rayp  Offline

X

Joined: Jul 2008
Posts: 2,107
Germany
Use clipping with lod if u dont already
example
Code:
action Object_ClipAway(){
  my.eflags |= CLIP0;   // clip away at 50% LOD range    
  wait (1);            
  my.emask &= ~DYNAMIC; // then make entity static for better performance	      
}
action Tree_Wed(){
  my.eflags |= CLIP0;       // clip away at 50% LOD range    
  set (my, POLYGON);        // if grass PASSABLE of course
  my.skill41 = floatv (30); // values for animTree
  my.skill42 = floatv (30);
  ent_mtlset(me,mtl_animTree, 1);	
  wait (1);
  my.emask &= ~DYNAMIC;     // then make entity static for better Performance
}



Acknex umgibt uns...zwischen Dir, mir, dem Stein dort...
"Hey Griswold ... where u gonna put a tree that big ?"
1998 i married my loved wife ... Sheeva from Mortal Kombat, not Evil-Lyn as might have been expected
rayp.flags |= UNTOUCHABLE;
Re: need Input about Entitys [Re: rayp] #459840
06/08/16 13:32
06/08/16 13:32
Joined: Mar 2014
Posts: 359
CocaCola Offline OP
Senior Member
CocaCola  Offline OP
Senior Member

Joined: Mar 2014
Posts: 359
thx sivan and rayp.
I´will try the shader again, for my 345 tree Modell, maybe I need to change some proterities in the shader, I think it would work only it is a vertex transform shader

The D<namics Flag, I have never used bevor, maybe my generated wood, had mor fps laugh

Page 1 of 3 1 2 3

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