x


Can I access the Direct3D device object from a plugin somehow?

I'm trying to integrate a C++ - based dynamic sky rendering library (SilverLining) into Unity3D. Under OpenGL this seems feasible, since I can draw my skybox and volumetric clouds directly to the current context before and after each frame render. But under Direct3D, you need the IDirect3DDevice9 pointer to do any drawing, and I can't see any way to obtain the device used by Unity and pass it into the plugin.

Is there any mechanism whereby a plugin can render to Unity's Direct3D device?

more ▼

asked Dec 29 '09 at 12:07 AM

Frank Kane gravatar image

Frank Kane
18 1 1 2

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

No, at least currently this is not possible.

more ▼

answered Jan 20 '10 at 02:38 PM

Aras gravatar image

Aras ♦♦
1.6k 7 26

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x392
x162

asked: Dec 29 '09 at 12:07 AM

Seen: 1641 times

Last Updated: Dec 29 '09 at 12:07 AM