3D Rotational Issue (3D Framework)

For questions about using Classic.

Post » Mon Mar 14, 2011 4:07 am

I've been working on a 3d framework for some time now, but I do believe I've finally hit a wall I can't surpass. I actually dropped the project for a while, and now I'm coming back and asking for help. Anyway:

This is a 3D framework, designed with the intention of making a 3d game in construct easier. I've run into an issue though with pitched blocks (Can't miss 'em) and I'm wondering if theres a way to deal with it, or if I'm just screwed.

http://dl.dropbox.com/u/10316081/3DEngCut.cap

WASD Move
Q Rise
E Drop
Mouse Look
Click and Hold- Mouse Roll

Feel free to ask me any questions about it. I'll try my best to answer them. You will need Lucid's rawmouse movement plugin and Linkman2004's magicam plugin. The Color Replace dependence has been removed.
B
51
S
10
G
7
Posts: 184
Reputation: 6,825

Post » Sun Mar 20, 2011 2:32 am

Seriously? Nothing?
B
51
S
10
G
7
Posts: 184
Reputation: 6,825

Post » Sun Mar 20, 2011 3:15 am

[quote="Yarfapet":3mw3y6j1]Seriously? Nothing?[/quote:3mw3y6j1]

Your .cap requires MagiCam and some plugin called rawmousemove.csx that I've never heard of so people probably can't run it.

But even if they could, asking for help with a 3D engine on a forum full of non-coding 2D game designers is a needle in a haystack sort of thing.
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Sun Mar 20, 2011 4:54 am

here are the links to what you need to open this.
viewtopic.php?f=33&t=7550
viewtopic.php?f=2&t=7111&p=55616&hilit=raw+mouse+move#p55616
viewtopic.php?f=29&t=6930&p=57525&hilit=color+replace#p57525

if you can draw a diagram of how the different values interact, like explaining the function of each of the sphere equations and what events use which, and why, I might be able to help. I've made 3d spheres and such in construct before. quazi's done much more 3d stuff. It all makes sense when you're the one doing it, but , for me at least, without having freshly been working on sphere math, deciphering this over a large cap would be tedious, especially not knowing which part is an error.

An explanation of the math you're using, from which frame of reference would be helpful. for instance, is there a fake camera running through private variables and events, if so, how does it interact with the magiccam. why -270. If you're using sphere math, a basic diagram showing construct properties and variables as they correspond to the terms in the equations, especially the ones dealing with normals or surface angles, since I believe that's where the problem is. Without some basic information, it would be a bit of a project just to figure out what's going on.
Spriter Dev
B
88
S
21
G
12
Posts: 3,240
Reputation: 16,486

Post » Mon Mar 21, 2011 1:16 am

[quote="lucid":31rcq3qr]

if you can draw a diagram of how the different values interact, like explaining the function of each of the sphere equations and what events use which, and why, I might be able to help. I've made 3d spheres and such in construct before. quazi's done much more 3d stuff. It all makes sense when you're the one doing it, but , for me at least, without having freshly been working on sphere math, deciphering this over a large cap would be tedious, especially not knowing which part is an error.

An explanation of the math you're using, from which frame of reference would be helpful. for instance, is there a fake camera running through private variables and events, if so, how does it interact with the magiccam. why -270. If you're using sphere math, a basic diagram showing construct properties and variables as they correspond to the terms in the equations, especially the ones dealing with normals or surface angles, since I believe that's where the problem is. Without some basic information, it would be a bit of a project just to figure out what's going on.[/quote:31rcq3qr]

I've made a few changes, mainly I've removed a couple of scrap values and events that had no real purpose or were for thing not really pertaining to this. Also the reliance on color replace was taken out (Part of a lighting experiment)

Anyway, the math I'm using mainly came from Wikipedia's perspective projection page ( I use the non-matrix code, but stop when I have 3 values). Also bits of codes from the 3d wolfinstein demo and my modification of it.

1.Is their a fake camera?
Yes. Everything is faked...except for camera rolling. This is why the formula is filled with Cos(0) and Sin(0), since these are where the camera roll angles would have normally gone (Kept in in case I needed to make comparisons to the original formula)

2.How does it interact with Magicam?
I actually don't have a complete clue. But it has to do with camera rolling. I've checked head to toe for references to Magicam in the events, but can't find any. But when I remove the inlevel instance, Roll controls stop working.

3. Why -270?
The design I was going for had the 2D map be a overhead map. The formula I had created however made the map become frontside view. I compensated for this by tilting the camera 270 degrees. The pitch of the block is set to camera pitch-270 to counter act the camera's rotation and make level design easier.

4. The Values.

"World" Block positioning is similar to the wolfinstein examples. Position in 2d space determines 3d X and Z. The map pieces have a "3DY" value that determine just that...the block's Y position in 3D space. The camera also uses this.

The size of the blocks are also determined in a similar fashion, with 2d Width and Height determining 3d width and depth. And a separate "Height" variable for actual 3D height.

The "World" Yaw of a block is determined by it's 2D representative's rotation on the map, and its "World" pitch by a private variable held. How to actually get said world pitch to work is what I'm inquiring about. There two blocks with a non-zero pitch, they are the two lone striped (Cyan) blocks.

The test global variable is simply a runtime adjustable variable that currently serves no purpose.
B
51
S
10
G
7
Posts: 184
Reputation: 6,825

Post » Mon Jan 18, 2016 4:04 pm

Where i can find the rawmousemov.csx plugin ?, all links are dead, maybe someone save it somewhere ?
B
2
S
1
Posts: 6
Reputation: 312


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 3 guests