Click here to Skip to main content
15,880,891 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
OK i got a viewport3d and i have slimDX sdk, i searched through the code to know how to render the viewport3d using slimDX, and found nothing, basically i'm trying to hardware render a viewport3d which has some 3d object, to an image to save.

or if anyone got a better solution than slimDX, i'm listening :)

any help will be more than welcome...

i care to mention i use wpf and vb.net 4.0
Posted
Updated 7-Jul-11 12:50pm
v3
Comments
bat3a 27-Jun-11 17:39pm    
still no answer, anyone got tips about that, is it that hard???????

Alt+PrtSc?

Possibly SendKeys{} in a script?

wscript or vbscript ...
 
Share this answer
 
Comments
bat3a 6-Jul-11 14:00pm    
i didn't catch what you mean!!!
do you mean to simulate sending Alt+PrtSc to catch the the frame and then save it from clipboard!!!, well it a very hacky way and won't work as my app requires to be hidden with no UI, but thanks for answering :)
RedDk 6-Jul-11 18:35pm    
I've been reading some of your posts and I think we're not on the same page with respect to the word "render". In your question here you use the words "image to save". In my world, the word "render" is thrown about when refering to an animation, in which case, thinking serial frames and movement in the "viewport", such a hack as I suggest would not be much of a solution. So ... viewport3d ...

I the case of animating using PrtSc I was thinking along the lines of something involving a bigger hack, say download codeproject "WinMacro" and actually turn the model and capture the individual frames. It's been done, but as you say "hacky".
bat3a 6-Jul-11 20:25pm    
thanks, but would not work either as i said there are no UI to capture, all code runs hidden from the user,now my app is working OK, the main problem lies in the speed of exporting the png's as the rendertargetbitmap that i use now is rendering using software, i want to use slimDX as it uses hardware rendering, that's all.
so i need a guide to do so or some code snippet :) as by searching the internet i found none :(.
RedDk 7-Jul-11 14:08pm    
Ok. It's my experience when dealing with "all things Microsoft" that as I start a project using a particular platform it's best to keep an open mind wrt language. I notice in my personal VS2010 help tome that viewport3D samples show much about c# and little about vb. That being the case, I wouldn't spend any more time pursuing the latter when the former is actively put on the pedestal. If you're trying to find some northwest passage to game development and have got the models, just don't have an engine and were seeking to create one from scratch (.. yup sounds like something I'd have naively thought possible using DX way back when ...), UNITY (look it up) might be the @ to plug into a phys-sim. Looks good, anyway ...
bat3a 7-Jul-11 18:49pm    
thanks again but it seems you've gone pretty far from what i need, i don't need unity.
and if you have a c# code snippet resolving my problem i welcome it.
You can always take look at Balder 3D[^]

Or if you are really looking for somethiung powerful: MOGRE[^] or Axiom[^] - be prepared to spend a fair amount of time learning the frameworks though.

If you are willing to say goodbye to .net - there is CELStart[^] - at CrystalSpace[^]

Blender[^] has game engine[^] too. 3D Design environment and a good active support community at an unbeatable price.

Best regards
Espen Harlinn
 
Share this answer
 
Comments
bat3a 9-Jul-11 9:42am    
All i needs is just rendering a visual not a whole game engine, it is as simple as that, but thanks for answering.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900