View previous topic :: View next topic |
Author |
Message |
Twixn DeleD PRO user
Joined: 01 Dec 2005 Posts: 136 Location: Melbourne Australia
|
Posted: Wed Jan 25, 2006 3:40 am Post subject: Suggestion: Change object order. |
|
|
hey all,
Just a suggestion, but would it be possible to add the ability
to change the order of objects up/down the list? either with a click'n'drag
feature or a simple move up and down buttons.
The reason i ask is for optimization, primarily being able to
'batch' objects together (eg, objects with the same material
etc etc, for less state changes in game).
And also for 'cleanness'...the list to the side of my current level
looks like a bomb hit it and its been reorganized with a rake
-Twixn- _________________ Failure is not an option!....It comes bundled with the software. |
|
Back to top |
|
|
Daaark DeleD PRO user
Joined: 01 Sep 2004 Posts: 2696 Location: Ottawa, Canada
|
Posted: Wed Jan 25, 2006 5:51 am Post subject: Re: Suggestion: Change object order. |
|
|
Twixn wrote: |
The reason i ask is for optimization, primarily being able to
'batch' objects together (eg, objects with the same material
etc etc, for less state changes in game). |
Sort by Material plugin? Does the plugin system support that? I could probably create it.
Batching objects by material is not hard to do when you load your level at runtime, if you need help with that (in c code/ opengl) shoot me a pm. |
|
Back to top |
|
|
Twixn DeleD PRO user
Joined: 01 Dec 2005 Posts: 136 Location: Melbourne Australia
|
Posted: Wed Jan 25, 2006 7:22 am Post subject: |
|
|
I was thinking more along the lines of manually
changing the order....but i spose i could make
a sorter at my end (in my renderer).
Sorting by materials was just an example, i have
a few more things that i need to take into account
when sorting (size, user tag etc).
Also thanks for your offer, but i should be able to
code some kind of sorter myself...i might as well
perform a simple depth sorter aswell.
-Twixn- _________________ Failure is not an option!....It comes bundled with the software. |
|
Back to top |
|
|
Paul-Jan Site Admin
Joined: 08 Aug 2004 Posts: 3066 Location: Lage Zwaluwe
|
Posted: Wed Jan 25, 2006 10:15 am Post subject: |
|
|
The DMF file format is targeted towards re-usability inside DeleD, not towards any particular final rendering solutions.
I don't think such an optimization for rendering speed would be very appropriate there, I consider that something to be solved in the rendering engine (i.e. a post processing step when loading the mesh, or more probably a JIT optimization before actually rendering, like many engines do).... in other words: what you just said
An alternative would be writing a dedicated exporter or format converter to a file format specialized for your particular needs.
That said, allowing the user to manually re-order the objects is probably a very good idea anyway, so writing it down |
|
Back to top |
|
|
mappy DeleD PRO user
Joined: 18 Aug 2005 Posts: 340 Location: France
|
Posted: Wed Jan 25, 2006 11:42 am Post subject: |
|
|
Paul-Jan wrote: |
That said, allowing the user to manually re-order the objects is probably a very good idea anyway, so writing it down |
Also, having the possibility to sort all DeleD lists (scene inspector, materials picker tabs and materials, materials editor tabs and materials, ...) in an alphabetic order would please me.
I've noticed that the prefabs list seems to be sorted, so sorting the scene inspector should be possible ? _________________ OL. |
|
Back to top |
|
|
Twixn DeleD PRO user
Joined: 01 Dec 2005 Posts: 136 Location: Melbourne Australia
|
Posted: Wed Jan 25, 2006 12:25 pm Post subject: |
|
|
Well, rendering optimization was my prime concern,
but i know thats my problem more than yours
But, my other (not a concern, more of an annoyance) problem
is that the objects list on my levels is a complete mess
Glad it made it on the list anyway
-Twixn- _________________ Failure is not an option!....It comes bundled with the software. |
|
Back to top |
|
|
Paul-Jan Site Admin
Joined: 08 Aug 2004 Posts: 3066 Location: Lage Zwaluwe
|
Posted: Wed Jan 25, 2006 2:35 pm Post subject: |
|
|
Yeah, making the list sortable / pre-sorted makes a lot of sense. Some basis searching functionality would come in handy, too.
Mappy: On a side note, the prefab list is a different from the object list in two ways:
- it is simply a list of files in a folder, so it gets sorted for free as long as the user is on NTFS
- more importantly, it is a non-mutable list, where as the scene objects get things added to them. It's always one of those classic business application decisions wether new objects should appear (a) on top (b) on the bottom (c) in the correct sorted location. |
|
Back to top |
|
|
mappy DeleD PRO user
Joined: 18 Aug 2005 Posts: 340 Location: France
|
Posted: Wed Jan 25, 2006 5:16 pm Post subject: |
|
|
Paul-Jan wrote: |
Mappy: On a side note, the prefab list is a different from the object list in two ways:
- it is simply a list of files in a folder, so it gets sorted for free as long as the user is on NTFS |
Oh yes, I didn't think of that _________________ OL. |
|
Back to top |
|
|
|