Posted: Sun Aug 01, 2004 9:20 pm Post subject:
Suggestion: Trapeziods
When I was 10 years old, the game was SimCity 2000 (actually my favorite was Keen 5, but nevermind).
I remember when I purchased this game, it came with something called the "Urban Renewal Kit", it was basically a modding tool which, among other things, allowed you to draw buildings in 2D.
This was identical to Paint in most ways, with one big exception: you could draw these trapezoids, which represented a right or left wall on a building.
My suggestion is to add something like this to OS SHP (even though I scoff the idea of 2D SHP making, no matter how good the software is). I think that if combined with C&P it could do wonders for the people who don't use 3D.
You could add these two features alongside:
Allowing the user to define two angles representing the direction a 3D square plane is facing.
Allowing the user to put a texture on it.
What do you think? If you guaruntee that you can implement it, I'll write a little C program which demonstrates this (minus the texture part), and give the src so you can copy the math (which I'll figure out ). _________________ My 3D to SHP tutorial
What I have in mind is the user clicking one corner then the next, and entering angles (graphically maybe?) elsewhere prior to that.
Well, if you can tell me that you'll at least probably do it, I'll make C program to demonstrate, and I'll work out all the math. Can't do it right now, but please tell me now... _________________ My 3D to SHP tutorial
Also Known As: banshee_revora (Steam) Joined: 15 Aug 2002 Location: Brazil
Posted: Sun Aug 01, 2004 10:18 pm Post subject:
Quote:
What I have in mind is the user clicking one corner then the next, and entering angles (graphically maybe?) elsewhere prior to that.
- I prefer the "What you get is what you see" way... although an option to enter angles can also be interesting, if you wanna make things "perfect".
Quote:
Well, if you can tell me that you'll at least probably do it, I'll make C program to demonstrate, and I'll work out all the math. Can't do it right now, but please tell me now...
- I'll do it. But... since the next days I have some tests (my period in both unis is almost over), I'll probably work it in the weekend or maybe a bit before. Trapezoid is an interesting option. _________________
Mods, Mods Support, Public Researchs, Map Archives, Tutorials, A Friendly Community and much more. Check it out now! QUICK_EDIT
Sorry for taking so long.
Everything is worked out except the math... it's worked out but doesn't work atm. Hopefully I'll finish tommorow, if not then the next day. _________________ My 3D to SHP tutorial
Well, it's getting much more complicated then I first thought, but I did quite a bit today and am confident that I'll be done tommorow... stay tuned. _________________ My 3D to SHP tutorial
Well, here's an SS. All I gotta do now is add math for tilting the wall. The math for the direction of the wall & it's dimensions is all done and works perfectly.
I'm not done and there's no chance I can finish later today. I thought tilt would be easy since I'd ficgured out direction fully, but it didn't turn out that way...
Maybe I won't give any more dates. I'll just say it'll be finished in the future.
I did do this much from the past post: previously, the cursor moved in a special way when you were drawing a wall. This made it easier, but unfortunately it wouldn't have a chance of working with a mouse... so I cooked up some new math and made it so that only a cursor's coords, the initial click, and the angles are needed to create the object.
I also made it so that backspace erases the previous object. _________________ My 3D to SHP tutorial
Also Known As: banshee_revora (Steam) Joined: 15 Aug 2002 Location: Brazil
Posted: Mon Aug 09, 2004 12:27 am Post subject:
I'm doing my part and I'm trying to sort the save thing... I hope to have it fixed soon... except that I still have no idea on how to deal with the "invalid pointer operation". When I get this fixed, I'll add a bunch of stuff to the program. I'll probably redesign the menu a bit... _________________
Mods, Mods Support, Public Researchs, Map Archives, Tutorials, A Friendly Community and much more. Check it out now! QUICK_EDIT
Been reading up on linear transformations, and I daydream about how I'd do it once in a while. I can't do much on weekdays, so don't expect anything...
Also Known As: banshee_revora (Steam) Joined: 15 Aug 2002 Location: Brazil
Posted: Sat Aug 14, 2004 8:07 pm Post subject:
You are making a new shape, not transforming an existing shape. You could even make a square and get the projection to transform it into a trapezoid, but if you do it in the way you think, you will be transforming everything inside this "square" into a trapezoid, which is wrong for a tool like rectangle, elipse and trapezoid. _________________
Mods, Mods Support, Public Researchs, Map Archives, Tutorials, A Friendly Community and much more. Check it out now! QUICK_EDIT
You are making a new shape, not transforming an existing shape. You could even make a square and get the projection to transform it into a trapezoid, but if you do it in the way you think, you will be transforming everything inside this "square" into a trapezoid, which is wrong for a tool like rectangle, elipse and trapezoid.
It's wrong? Maybe... but if I don't do it this way then the input angles would refer to the angles made between drawn lines and the 2d x or y axis.
But if you projet the 3D quad to a 2D viewing plane, you get to visualize the quad as a 3D object, and define the angle it makes with an xy plane and a yz plane(the yz plane part is done).
All of the 3D is handled outside of the code on pencil, so you need not worry about the code processing 3D coords.
Anyway, I got this thing working perfectly. For RA2 camera, adjust Rx to 30, and Ry to -135.
Here's the transformation equation (you don't need it... I'm just posting it anyway):
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum