I have a couple of zooming related questions...
Question 1:
I need to know how I can zoom towards the current position of the mouseX() and MouseY() using the center mouse button.
I use ProEngineer CAD software at work and it has this zoom ability. I am trying to build that type of zoom using Blitz. No matter where I place the mouse on the screen, ProEngineer will zoom to that point when scrolling the middle mouse wheel.
Question 2:
In ProEngineer, when I zoom in, everything appears flat on the screen but in Blitz, objects change shape as I zoom in, out, up or down.
For example:
Suppose I have a cube 1 unit wide in X axis, 1 unit tall in Y axis, and 12 units deep in Z axis.
In ProEngineer, I can zoom in or out and the cube that is displayed on the screen always stays 1 unit wide by 1 unit tall. It just gets bigger or smaller depending upon if I am zooming in or out. I never see the depth of the cube.
In Blitz, when I zoom in or out, I can sometimes see the depth of the cube depending upon where the cube is on the screen.
Is it possible to have all objects appear flat on the screen while zooming in or out like they do in ProEngineer? Ideally, I would want all of my objects to always appear flat on the screen no matter how far away they may be from the center of my screen.
Question 3:
Not related to zooming...
How do I post code to this sight and have all of the indentation remain? When I post my code, all of the code is left justified and it looks very unreadable.
I am sure these are very boring questions for game programmers but I am building a machine simulator for use at work and I am not really a programmer so I am having to learn a bunch on my own.
Thanks for any advice you may have,
David
I mistakenly posted this in the regular forum. I meant to post in the beginners forum and do not know how to move it. Perhaps someone else can move it for me.
Question 1:
I need to know how I can zoom towards the current position of the mouseX() and MouseY() using the center mouse button.
I use ProEngineer CAD software at work and it has this zoom ability. I am trying to build that type of zoom using Blitz. No matter where I place the mouse on the screen, ProEngineer will zoom to that point when scrolling the middle mouse wheel.
Question 2:
In ProEngineer, when I zoom in, everything appears flat on the screen but in Blitz, objects change shape as I zoom in, out, up or down.
For example:
Suppose I have a cube 1 unit wide in X axis, 1 unit tall in Y axis, and 12 units deep in Z axis.
In ProEngineer, I can zoom in or out and the cube that is displayed on the screen always stays 1 unit wide by 1 unit tall. It just gets bigger or smaller depending upon if I am zooming in or out. I never see the depth of the cube.
In Blitz, when I zoom in or out, I can sometimes see the depth of the cube depending upon where the cube is on the screen.
Is it possible to have all objects appear flat on the screen while zooming in or out like they do in ProEngineer? Ideally, I would want all of my objects to always appear flat on the screen no matter how far away they may be from the center of my screen.
Question 3:
Not related to zooming...
How do I post code to this sight and have all of the indentation remain? When I post my code, all of the code is left justified and it looks very unreadable.
I am sure these are very boring questions for game programmers but I am building a machine simulator for use at work and I am not really a programmer so I am having to learn a bunch on my own.
Thanks for any advice you may have,
David
I mistakenly posted this in the regular forum. I meant to post in the beginners forum and do not know how to move it. Perhaps someone else can move it for me.