Custom rendering
#4
Uh, it would surely be an overkill to provide your own rendering logic for only custom transformation.

You can set the transformation to any SceneNode with settings its Transform - this way you can provide your own world transformation. This will also work well with other parts of the engine (for example with automatic calculation of near and far camera planes). Then the DXEngine will choose the correct effect and shader based on the specified material and do the drawing - it will also set the transformation matrix to the correct constant buffer.

Is this not enough for your use case or is there any other reason that you need custom rendering logic.
Andrej Benedik
  


Messages In This Thread
Custom rendering - by Hamish - 02-27-2018, 02:22 AM
RE: Custom rendering - by abenedik - 02-27-2018, 10:20 AM
RE: Custom rendering - by Hamish - 02-27-2018, 10:26 AM
RE: Custom rendering - by abenedik - 02-27-2018, 11:00 AM
RE: Custom rendering - by Hamish - 02-27-2018, 12:19 PM
RE: Custom rendering - by abenedik - 02-28-2018, 11:04 AM
RE: Custom rendering - by Hamish - 03-01-2018, 04:22 AM
RE: Custom rendering - by Hamish - 03-01-2018, 05:56 AM
RE: Custom rendering - by abenedik - 03-01-2018, 10:05 AM
RE: Custom rendering - by Hamish - 03-01-2018, 10:38 AM
RE: Custom rendering - by abenedik - 03-01-2018, 10:21 PM
RE: Custom rendering - by Hamish - 03-01-2018, 11:37 PM

Forum Jump:


Users browsing this thread:
1 Guest(s)