2 registered members (Akow, tomaslolo),
1,536
guests, and 12
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Optimization, properties, etc
#358370
02/10/11 22:13
02/10/11 22:13
|
Joined: Oct 2008
Posts: 513
Carlos3DGS
OP
User
|
OP
User
Joined: Oct 2008
Posts: 513
|
Hi guys, Im working on a game thats kind of a mix of dungeon keeper and minecraft. For those that dont know them... lets just say that means levels/worlds created from simple blocks. Dungeon Keeper: http://www.youtube.com/watch?v=FsxJRpheNEEMinecraft: http://www.youtube.com/watch?v=qss4uy6C_g0Currently im using squares just to test the framerate and it is waaaaay tooo low and takes a long time to gereate my level. Im not using complicated models, just simple squares... I was wondering if anyone knew a way to create entities withought all those fancy properties/skills/etc... All I want is to create entities with the basic properties (x,y,z pan,tilt,roll and mabe a pointer or two...) Is that possible? Does anyone know how to do it? Something else that would help me improve map perfomance would be for block behind eachother (not visible to player) to not be rendered. I read that the 3DGS engine does that automatically (I have A7 commercial). But it dosnt seem to be working... While it creates the cube models performance rapidly goes down so I'm guessing the not visible ones are also being rendered or something? Mabe it is because that only happens automatically when building the level? I use a null level for load and then generate the cubes with a script so I can create random worlds to explore... Any help to remove entity properties and to hide not visible ones would be of great help. I dont think its related to my PC performance as I have a 3Ghz Dual core, with 4Gb Dual Channel Ram, and 512 Mb of Video Memory. At the moment for testing I am creating 50x50x50 = 125000 cubes. I know thats alot but its not even near what I need, im just doing it for testing and its insane... The blocks are very simple cubes with 16x16 pixel textures! Any help would be greatly appreciated
|
|
|
Re: Optimization, properties, etc
[Re: Carlos3DGS]
#358371
02/10/11 22:15
02/10/11 22:15
|
Joined: Apr 2008
Posts: 650
Sajeth
User
|
User
Joined: Apr 2008
Posts: 650
|
This wont work with Acknex, I assume. Minecraft for example is also not working with vertices (for blocks at least).
Teleschrott-Fan.
|
|
|
Re: Optimization, properties, etc
[Re: Logan]
#358386
02/10/11 23:14
02/10/11 23:14
|
Joined: Mar 2006
Posts: 3,538 WA, Australia
JibbSmart
Expert
|
Expert
Joined: Mar 2006
Posts: 3,538
WA, Australia
|
Check out this thread and this thread for some older discussions on how one might get it to work efficiently in GS. It's possible, but takes some tricks. Jibb
Formerly known as JulzMighty. I made KarBOOM!
|
|
|
Re: Optimization, properties, etc
[Re: Logan]
#358388
02/10/11 23:17
02/10/11 23:17
|
Joined: Oct 2008
Posts: 513
Carlos3DGS
OP
User
|
OP
User
Joined: Oct 2008
Posts: 513
|
For your question about not rendering blocks behind other blocks, this only works with a precompiled level, not dynamically created ones. What if instead of making my world of "mdl models" I made small square "level blocks" and placed those with my script? Would it work then? How about creating entities withought all that extra skills and flag stuff? That would also help reduce memory and increase performance? Anyone knows how that could be achieved?
|
|
|
Re: Optimization, properties, etc
[Re: JibbSmart]
#358389
02/10/11 23:18
02/10/11 23:18
|
Joined: Oct 2008
Posts: 513
Carlos3DGS
OP
User
|
OP
User
Joined: Oct 2008
Posts: 513
|
Check out this thread and this thread for some older discussions on how one might get it to work efficiently in GS. It's possible, but takes some tricks. Thanks! I'll take a look at those and get back to you guys tomorrow
|
|
|
Re: Optimization, properties, etc
[Re: Carlos3DGS]
#358496
02/11/11 16:12
02/11/11 16:12
|
Joined: Jul 2010
Posts: 283 Germany
jenGs
Member
|
Member
Joined: Jul 2010
Posts: 283
Germany
|
I am working at a voxel Terrain generator at the moment, so I know your problem: How I am doing it: - Acknex is able to load object files - Wavefront obj is a very simple fileformat - Get the Terraindata from somewhere (in my case Libnoise) - slice this data in chunks (i am using 16 x 16 x 4 chunks) - For every chunk write an *.obj file in a virtual filesystem - If you do it right it is at least so fast, that you can add and remove voxel data per chunk - You can't store so large arrays (perhaps you can in bitmaps). So you need a proper generation code for your terraindata and a level for when a block is filled or not filled
Only Texturing gives me headaches, because I always get an out of memory error ... why ... why ...
Last edited by jenGs; 02/11/11 16:13.
|
|
|
Re: Optimization, properties, etc
[Re: jenGs]
#358523
02/11/11 18:43
02/11/11 18:43
|
Joined: Jul 2005
Posts: 187
lostzac
Member
|
Member
Joined: Jul 2005
Posts: 187
|
I have something that may be able to help you , that I am planning on releasing to the community in a few days (just have to touch up the source code)..It is a random dungeon generation dll...
What it does it generate a text file map of a dungeon, from their I load it into 3dgs and read the chars...each char represents a tile block that is loaded into the level making a complete dungeon, the dll generates random size and layout...I am using this to make a rouge like game that is 3d....
Anyways as I said I will be releasing the source code and dll to the community tonight or tomorrow, and as it uses tile blocks to make the dungeon I thought it could help you with makeing your levels
John C Leutz II
|
|
|
|