Welcome Guest [Log In] [Register]
We hope you enjoy your visit.


You're currently viewing the Ultimate 3D Community as a guest. This means that you can only read posts, but can not create posts or topics by yourself. To be able to post you need to register. Then you can participate in the community active and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.

Join our community!

If you are already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
help with multiple views -; nothing seems to be lining up...
Topic Started: Dec 6 2007, 10:14 PM (199 Views)
apathyjoe
Advanced Member
[ *  *  * ]
i figured i'd try an experiment in order to make my gui 2d (regular gml) and then have a window with my model...think of this as sort of a creator or editor...the model in u3d, the interface in 2d.

i know that you can't draw 2d in the same view as gm, but i see how you can use multiple views to create this same sort of effect. unfortunately, i'm getting all sorts of crazy results when i start changing where to port things on screen, 2d drawing functions aren't working in the other views, etc...maybe someone can give me a hand...
Offline Profile Quote Post Goto Top
 
Dr. Best
Member Avatar
Administrator
[ *  *  *  *  *  * ]
Well, you have to do it like this:
Set up view 0 for Ultimate 3D in a particular area of the screen (e.g. view in room: x=0; y=0; W=400; H=400, same for the port on screen). Then set up view 1 in another area of the screen. It's important that view 1 doesn't intersect view 0 in any way (those parts would be covered by the window of Ultimate 3D). Despite you should have the same values set up for the view in room and the port on screen. Then you should be able to draw to view 1 without any problems.
Offline Profile Quote Post Goto Top
 
apathyjoe
Advanced Member
[ *  *  * ]
yep - this is exactly how i thought this should work. yet no matter what values i set view[1] to, its always being drawn right in the middle of the screen with the same dimensions as whatever i set view[0] to. i made view[0] port to 0,0 with a width of 400x300, then i ported view[1] to 400,0 with a width of 200x300. i had assumed this would draw that second view exactly to the right of the first, but all kinds of funky things happens. for instance, the 'objects' from u3d suddenly appeared on the screen in the space below view[0]... the model sprite and the lighting sprite, etc. next, when i did get view[1] to actually draw_rectangle, it apeared exactly the same size as my view[0] window in the precise middle of the screen. (and yes, it even went underneath of the u3d view...)

bizarre hm?
Offline Profile Quote Post Goto Top
 
harkathmaker
Member Avatar
Persistent Enquirer
[ *  *  *  *  * ]
There were all sorts of problems when I tried to do this a long time ago. You can draw textures in 2d, though, so one way to get around this is to program the GUI in U3D. ^_^
Offline Profile Quote Post Goto Top
 
Dr. Best
Member Avatar
Administrator
[ *  *  *  *  *  * ]
I gave it a try and it's working. If you are working with fullscreen mode, you should try doing it in windowed mode. The Init() script for Game Maker 6.0 and higher has some bugs when it comes to setting up the view correctly.
Offline Profile Quote Post Goto Top
 
apathyjoe
Advanced Member
[ *  *  * ]
EDIT: ok...I just started over just to make sure...and everything seems to work perfectly fine...murphy's law is around here somewhere...i'll see if I can find it. it works exactly how I thought it should and coded it the first time! Anyone else who may need help with this...feel free to hit me up.

_____________________________________________________________




yes, i'm still having all sorts of trouble...thats rough, i thought i was on to something! I guess i can try to do this all in 3d with textures but man...a lot of this had to do with drawing rectangles and all that...i guess i could draw primatives for that, but i already had such a perfect working system in GM i was pretty much just trying to merge the two...ah well. Thanks for the help guys, and i'm sure i will hvae questions to come!

Offline Profile Quote Post Goto Top
 
« Previous Topic · Questions about Ultimate 3D · Next Topic »
Add Reply