Gamestudio Links
Zorro Links
Newest Posts
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (degenerate_762, AbrahamR, AndrewAMD, ozgur), 667 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Optimization, properties, etc #358370
02/10/11 22:13
02/10/11 22:13
Joined: Oct 2008
Posts: 513
Carlos3DGS Offline OP
User
Carlos3DGS  Offline 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=FsxJRpheNEE
Minecraft:
http://www.youtube.com/watch?v=qss4uy6C_g0

Currently 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


"The more you know, the more you realize how little you know..."

I <3 HORUS
http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=401929&page=1
Re: Optimization, properties, etc [Re: Carlos3DGS] #358371
02/10/11 22:15
02/10/11 22:15
Joined: Apr 2008
Posts: 650
Sajeth Offline
User
Sajeth  Offline
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: Sajeth] #358383
02/10/11 22:59
02/10/11 22:59
Joined: Jan 2011
Posts: 120
United States
Logan Offline
Member
Logan  Offline
Member

Joined: Jan 2011
Posts: 120
United States
For your question about not rendering blocks behind other blocks, this only works with a precompiled level, not dynamically created ones. So unfortunately you cannot have this done automatically with a level that is generated at runtime. The reason is, the calculations that determine what blocks are visible behind others are incredibly complex, sometimes taking a few days to compile a whole map. Obviously this is completely impossible to do effectively at runtime. It also only works with level geometry (I believe), not models or even map entities, so if you built a whole level from model cubes it wouldn't work anyway.*

*Don't quote me on this--I know it worked this way back in A6, but I'm not 100% sure anymore.

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
J
JibbSmart Offline
Expert
JibbSmart  Offline
Expert
J

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 Offline OP
User
Carlos3DGS  Offline OP
User

Joined: Oct 2008
Posts: 513
Originally Posted By: Logan
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?


"The more you know, the more you realize how little you know..."

I <3 HORUS
http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=401929&page=1
Re: Optimization, properties, etc [Re: JibbSmart] #358389
02/10/11 23:18
02/10/11 23:18
Joined: Oct 2008
Posts: 513
Carlos3DGS Offline OP
User
Carlos3DGS  Offline OP
User

Joined: Oct 2008
Posts: 513
Originally Posted By: JulzMighty
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


"The more you know, the more you realize how little you know..."

I <3 HORUS
http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=401929&page=1
Re: Optimization, properties, etc [Re: Carlos3DGS] #358398
02/11/11 00:35
02/11/11 00:35
Joined: Jan 2011
Posts: 120
United States
Logan Offline
Member
Logan  Offline
Member

Joined: Jan 2011
Posts: 120
United States
As for your question RE what I said, unfortunately this won't work. The only way to get this optimization is to create the whole level in WED and click Build--i.e. it only works for pre-built, "set in stone" levels. Level geometry from WMB files that you create at runtime is the same as creating a level from MDLs or any other thing.

Re: Optimization, properties, etc [Re: JibbSmart] #358481
02/11/11 14:52
02/11/11 14:52
Joined: Oct 2008
Posts: 513
Carlos3DGS Offline OP
User
Carlos3DGS  Offline OP
User

Joined: Oct 2008
Posts: 513
Lots of good ideas in those threads, gonna be tough though, lets see what i can achieve.


"The more you know, the more you realize how little you know..."

I <3 HORUS
http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=401929&page=1
Re: Optimization, properties, etc [Re: Carlos3DGS] #358496
02/11/11 16:12
02/11/11 16:12
Joined: Jul 2010
Posts: 283
Germany
J
jenGs Offline
Member
jenGs  Offline
Member
J

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
L
lostzac Offline
Member
lostzac  Offline
Member
L

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


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