Jump to content

View more

Image of the Day

Boxes as reward for our ranking mode. ヾ(☆▽☆)
#indiedev #gamedev #gameart #screenshotsaturday https://t.co/ALF1InmM7K
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Handling depth sorting key and hardware instancing

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
22 replies to this topic

#21 MJP   Moderators   

19420
Like
0Likes
Like

Posted 29 March 2013 - 12:08 PM

I don't know if it's actually mentioned anywhere in the documentation. The actual specifics of the DX spec that the vendors conform to isn't publicly available, unfortunately. I'm pretty sure that the OpenGL spec explicitly mentions it somewhere, but it would take me a while to dig through that and find it.



#22 lipsryme   Members   

1522
Like
0Likes
Like

Posted 29 March 2013 - 05:45 PM

So in the end this means that I can't do instancing with transparent objects since I need to sort them ? :(



#23 Tournicoti   Prime Members   

704
Like
0Likes
Like

Posted 30 March 2013 - 08:18 AM

Hello

 

In my program, I use a deferred renderer for opaque geometry with hardware instancing, (even for single objects ...) (because I massively repeat lots of identical objects, just changing some parameters like scaling, texture index ...).

 

I never render transparent geometry using instancing, because, mainly, my techniques can need several passes (screen-space refraction, front culling rendering then back culling rendering ...), I use a lot of different vertex layouts and techniques, so I need several draw-calls anyway, at least to change them. And because I prefer change all these states rather than not respect this minimal (mesh subsets) depth order.

 

This is just what I do, not an advice, so feel free to correct me smile.png So, in my opinion, to answer to your question, yes.


Edited by Tournicoti, 30 March 2013 - 09:03 AM.





Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.