Re: Direct3D in a browser

Tech-Archive recommends: Speed Up your PC by fixing your registry



Finally i got it to work. Now i have a fine spinning triangle inside IE. I
made a class inhereting from Panel and initialized Direct3D and subscribed to
the paint event. The project was compiled to a dll. I used tlbexp and regasm
to register the component in the registry. Then I used the CLSID to call it
from the browser. Now it works fine.

Not a lot of examples around to find out how to do it.

/Johan

"Johan Franzén" wrote:

I followed a tutorial showing how to create an activex control but I think
what i created is an embedded component. Does anynone have an example project
showing how to make a full ActiveX control in .net?

"The ZMan" wrote:

Are you using an actual activeX control or an embedded .net component?

MDX will not work in the latter as it requires full trust which IE does not
grant .net components. (and its *very* unwise to modify this permission or
ask a user to do it)

Full ActiveX controls *should* run under full trust as they are installed to
the local hard drive with user permission. (though I have never written one,
nor seen anyone make one with MDX in the last 2 years of being in this
newsgoup. for 3d in a browser flash or java3d seems much easier to do.

"Johan Franzén" <JohanFranzn@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:8D3F84D1-93E4-4907-84F6-CB7F3D5A74C9@xxxxxxxxxxxxxxxx
Hi again!

As soon as I try to use any of the classes in the DirectX-library it won't
work. The browser won't load the activex component if I for example try to
create a Vector2. It would be nice if anyone could create a little example
with managed direct3D with a teapot (or just a triangle) rendered in a
browser window. :)

I don't want to the resulting image to be rendered on the server. I need
interactivity inside the component.


/Johan Franzén



"Richard [Microsoft Direct3D MVP]" wrote:

[Please do not mail me a copy of your followup]

=?Utf-8?B?Sm9oYW4gRnJhbnrDqW4=?= <Johan
Franzén@xxxxxxxxxxxxxxxxxxxxxxxxx> spake the secret code
<B2E6CDDF-DC7A-482C-BAE1-47FF3D06A4FF@xxxxxxxxxxxxx> thusly:

I know how to create an ActiveX component that draws a button and a
textbox,
but creating a panel which renders direct3D seems hard, or impossible!?

I would use an ActiveX control. Once your control is instantiated,
you have a window handle that you can use to create the device.
--
"The Direct3D Graphics Pipeline" -- DirectX 9 draft available for
download
<http://www.xmission.com/~legalize/book/download/index.html>




.


Quantcast