Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

import 3d obj model and control rotate,traslate,scale.... from buttons

$
0
0

hi, i'm new at WPF

i searched all over the internet for some example that demonstrate how to move some 3d Model with the regular

events.

i'll explain what i mean:

i'm using Visual studio 2012 and opened new wpf project, i added some 3d Model (.obj,.mtl , .png)

with the BLEND and now i can see the 3d Model in some 3dViewPort.

in the Blend i can also rotate and do all the regular things but:

when you add some button to visual studio , u can give it a name and then in the code you will write

button.color=...

i want to do the same for the 3d model

if i push some button the 3d model will rotate

my 3dViewPot has a name:

Bicycle

but in the code i cant do this: bicycle.rotate=..

does any one know how to refer 3d model rotate,scale and all the othes from the code?

if any one have example for that i will be more than glad!

thank you

amit


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>