E-mail
Password
Login
Forgot your password?
Register
Please Login/Register for download.
LOGIN
REGISTER NOW
flare
showcase
download
support
contact
blog
buy
showcase
FORUM
WIKI
API
Login / Sign In
Actions
Login
SignUp
Recent topics
Help me on physics?
how to make f3d files???
yellow planet example
TypeError: Error #2007
Code Utilities Example: S...
Mesh of a Pivot3D
New Flare3D 2.5.18 is out...
how Export f3d file from ...
Links
API Documentation
Wiki
Forum
»
General Category
»
General Discussion
»
Viewport size
Author
Topic: Viewport size (Read 275 times)
Viewport size
Florian BERNARD
«
on:
May 30, 2012, 06:36:22 AM »
Hi,
Is it possible to specify a viewport size? I mean, if I want my scene to be not fullscreen.
Cheers
Viewport size
Ivan Vodopiviz
«
Reply #1 on:
May 30, 2012, 10:08:49 AM »
Hi,
You can do this:
_scene.setViewport( 50, 50, 400, 300 ); // x, y, width, height
That way you can center / resize your viewport as you wish.
Regards,
Viewport size
Florian BERNARD
«
Reply #2 on:
May 30, 2012, 12:53:37 PM »
Ok thank you.
For those would read this post: you must do setViewport once the Scene3D triggered the Scene3D.COMPLETE_EVENT event, or you'll get an error.
Regards
Pages: [
1
]
Forum
»
General Category
»
General Discussion
»
Viewport size