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
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (degenerate_762, AndrewAMD), 877 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 3 1 2 3
Re: Working with many entities [Re: Kartoffel] #445535
09/12/14 14:10
09/12/14 14:10
Joined: Jun 2014
Posts: 121
F
FEL Offline
Member
FEL  Offline
Member
F

Joined: Jun 2014
Posts: 121
So how about this idea:

The Base level is out of a cell/region system, every region/cell leads to a file where all the Entitys are saved in - Position Action Behaviour stuff everything for this Region.

By leaving a Region the old one will be destroyed and the new one will be loaded.


FEL - Lead Game Designer & Core Developer
Re: Working with many entities [Re: FEL] #445537
09/12/14 14:52
09/12/14 14:52
Joined: Jul 2013
Posts: 34
Nagykanizsa
Robogamer Offline OP
Newbie
Robogamer  Offline OP
Newbie

Joined: Jul 2013
Posts: 34
Nagykanizsa
I thought about this idea before, but the game still uses a lot of RAM even on small regions, because of the many entities. Thanks though
So, I'm a beginner in this part of game creation, how can I stick meshes together into one entity (i.e. chunk)?

Re: Working with many entities [Re: Robogamer] #445538
09/12/14 14:54
09/12/14 14:54
Joined: Jun 2014
Posts: 121
F
FEL Offline
Member
FEL  Offline
Member
F

Joined: Jun 2014
Posts: 121
Im a little bit confused... explain how your models work.

Are they big? Do they have high res textures? How many are they in a level?


FEL - Lead Game Designer & Core Developer
Re: Working with many entities [Re: FEL] #445539
09/12/14 15:00
09/12/14 15:00
Joined: Jul 2013
Posts: 34
Nagykanizsa
Robogamer Offline OP
Newbie
Robogamer  Offline OP
Newbie

Joined: Jul 2013
Posts: 34
Nagykanizsa
They are small, about 32x32x32 quants size. They actually have high-res textures, with a size of 512x512. When I removed the texture completely from one of my cubes, it used a much smaller amount of memory, but removing the texture is not a solution wink
I tried one of my cubes at 16x16 texture size, but it didn't help much.
The problem is, the big amount of cubes I need in my level. If I build 3 houses, the game starts to lag, and uses about 600 MB of RAM. It's about a few hundred cubes, maybe 200-300 of them.

Re: Working with many entities [Re: Robogamer] #445540
09/12/14 15:05
09/12/14 15:05
Joined: Jun 2014
Posts: 121
F
FEL Offline
Member
FEL  Offline
Member
F

Joined: Jun 2014
Posts: 121
Have u tried using external Textures?

I have a Level with about 500 Modells in it wich are using 8 HiRes textures, thx to External textures i can add almost unlimited new models without losing fps or stronger memory.

Hires textures = 2048²

Last edited by FEL; 09/12/14 15:05.

FEL - Lead Game Designer & Core Developer
Re: Working with many entities [Re: FEL] #445541
09/12/14 15:07
09/12/14 15:07
Joined: Jul 2013
Posts: 34
Nagykanizsa
Robogamer Offline OP
Newbie
Robogamer  Offline OP
Newbie

Joined: Jul 2013
Posts: 34
Nagykanizsa
I haven't tried it yet.
Do you mean, to not apply the skin in the 3D modeller, but in source code? My models are pretty large because of the textures, my friend models them in 3ds Max.

Last edited by Robogamer; 09/12/14 15:09.
Re: Working with many entities [Re: Robogamer] #445542
09/12/14 15:17
09/12/14 15:17
Joined: Jun 2014
Posts: 121
F
FEL Offline
Member
FEL  Offline
Member
F

Joined: Jun 2014
Posts: 121
Oh dear... U have to set this value in the Modeleditor, when creating a new skin and setting the Texture file, hitting the external Button.

I cannot explain that much also there is NO docu in the Handbook...


FEL - Lead Game Designer & Core Developer
Re: Working with many entities [Re: FEL] #445543
09/12/14 15:18
09/12/14 15:18
Joined: Jul 2013
Posts: 34
Nagykanizsa
Robogamer Offline OP
Newbie
Robogamer  Offline OP
Newbie

Joined: Jul 2013
Posts: 34
Nagykanizsa
Hmm... I'll see about it. Thx!

Re: Working with many entities [Re: Robogamer] #445545
09/12/14 15:42
09/12/14 15:42
Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
Kartoffel Offline
Expert
Kartoffel  Offline
Expert

Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
to clear the texture thing up:

There is absolutely NO memory difference when using external textures. But usually it's better to use external textures, because they are easier to change and you can share the same texture between different models.

A texture that is stored internally requires more memory than the same texture externally when the external texture is compressed (pretty much every format other than .bmp or .dds)
Besides that, textures are never loaded uncompressed. Wether you use a 512² 84kb .png-texture or a 512² 1024kb .bmp-texture - it doesn't make any change in the memory usage because the texture is always converted to an uncompressed format (dds) when loaded by the engine.

The ONLY way to use compressed textures is using the .dds format with texture compression because dds is the same format as the textures that are stored in your vram. However, lossless compression is not possible.


POTATO-MAN saves the day! - Random
Re: Working with many entities [Re: Kartoffel] #445547
09/12/14 15:46
09/12/14 15:46
Joined: Jun 2014
Posts: 121
F
FEL Offline
Member
FEL  Offline
Member
F

Joined: Jun 2014
Posts: 121
"There is absolutely NO memory difference when using external textures. But usually it's better to use external textures, because they are easier to change and you can share the same texture between different models."

And thats essential, only with this u are able to load levels with much entitys fast enough. I think its also important for rendering, thinking about clonig rendering techniques.


FEL - Lead Game Designer & Core Developer
Page 2 of 3 1 2 3

Moderated by  HeelX, Spirit 

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