Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Rendering a specific object to image

Author
Message
Oneka
20
Years of Service
User Offline
Joined: 24th Apr 2004
Location: Hampton,VA
Posted: 17th Apr 2011 21:46
Alright, I am just looking to be pointed in the right direction to achieve this, but I am looking to render an object to an image but I want to do this while having a scene setup,

I want to possibly (if effiecient) render this object only to a seperate camera offscreen that the user cannot see, and grab the image from that camera and use it within my game, I am taking a crack at the camera commands, but I am not exactly sure of how to render only a certain object without moving it to some obsecure position or how to hide a camera when not in use, instead of deleting it and recreating


Making dreams possible, one line at a time...
_Pauli_
AGK Developer
15
Years of Service
User Offline
Joined: 13th Aug 2009
Location: Germany
Posted: 18th Apr 2011 00:20
You can mask certain objects by tweaking some internal DirectX data.
Use this function to set an object to just be visible in a specific camera:



The dwMask parameter is a Bit value telling the object in what camera it is visible (use the same value like in the dbSyncMask() command).

Matty H
16
Years of Service
User Offline
Joined: 7th Oct 2008
Location: England
Posted: 18th Apr 2011 16:15
You can also render to a single camera:


Also, dbSetCameraToImage() can come in useful for what you are doing.

[href = http://forum.thegamecreators.com/?m=forum_view&t=184148&b=8][/href]

Login to post a reply

Server time is: 2024-11-19 12:22:54
Your offset time is: 2024-11-19 12:22:54