oh, and here's another program that loads a bitmap and uses it to make bumpmaps. looks pretty nice :)
Printable View
oh, and here's another program that loads a bitmap and uses it to make bumpmaps. looks pretty nice :)
This first one looks quite good, well its like what i'm aiming for so what else could I say:D, I really want to get this fixed now:(, did you see the problem with the X-axis in the project?? I'm going to have to check the code again to see if I can figue it out, I posted on the math forum as well to see if anyone could see my error:confused:.
I forgot to say, the second one looks good aswell but is very similar to a height map procedure I wrote a while back that I use to generate terrains from bitmaps(Delta Force style, don't tell me you never played it :D).
WWWWOOOOOOHHHHOOOO!!!!!!!!!! :D:D:D:D:D:D:D:D:D:D:D:D
I got it, or atleast I know the problem, its not too easy to explain but its to do with the angle Theta I'm using in the final bit to turn the X,Y,Z (in the screen plane) into 2D positions, the display will only work for the right side of the screen and if something goes over to the left side its refelected back (explains the wierd results shown). I just got to sort it out but I thort i'd post this that shows it works and my eforts havn't been in vein:D :D.
I'm also posting this incase I don't get a chance tonight to post the final bit, It'll be by no dought done for tomorrow tho:D :D.
looks really nice! :) except for the mirror bug thing....:rolleyes:
The problem was to do with the fact that:
See the pattern??VB Code:
ArcCos(Cos(90)) = 90 'This is Good!!! 'But... ArcCos(Cos(270)) = 90 'Not 270 you may notice!!! 'Similarly... ArcCos(Cos(181)) = 179
This is what I had failed to realise, I was relying on the false fact that ArcCos(Cos(x)) = x.
My Solution:
Quite a cheap trick, but saves on processing, I placed two points at opposite sides of the screen plane half way up. Then if I see which one the screen plane position is closer to I know which side (left or right) the point should be on and apply minus sign accordingly. :D:D:D
Once i've done this i'll post the final code here.
For the moment I need to solve this if anyone thinks there up to it :confused: http://www.vbforums.com/showthread.p...hreadid=254812
How's it going?
Would be nice to be able to draw 3d without dx or ogl
The formula at the other post gave me more trouble so I'm trying another idea, with plenty progress, I won't get a chance to do it tonight (well it is 1:00 in the morning so that doesn't say much) but tomorrow i'll have plenty time to do it and if my new method works it shouldn't take long, fingers crossed (again).
If you don't mind me asking how old are you?? just wondering what level your at with maths, A-Level, GCSE, or old enough to have forgotten it :D
im 19...
im currently at the "sine, cosine, radiants, circle blah blah-stuff" heheh....dunno if you have the same system i england as we have in schools in sweden. we do math A, B, C etc...im currently at D
Don't think we have that system, unless by A, B, C, ect... you mean thats how its marked(graded)? I've just finished A-Level maths(mechanics), find out my results 14 August, the last section was all about vectors so its fresh in my head :) After finishing High School what did you do??
I did that course last year (Finished 1st year at uni now). Good luck with your results. :)Quote:
Originally posted by Electroman
I've just finished A-Level maths(mechanics), find out my results 14 August
Thanx, I also did computing and physics, physics wasn't that good tho :( I start Uni in september, I move back up to Newcastle to go to Northumbria Uni to study Computer Games Development :D :D. What Uni you at and what course is it??
yep, that's grades.
in A we just repeat some we've allready learnt.
in B we learn algebra and some other stuff.
etc...
in sweden we have to go 9 years in school. then, if we want to, we go to what we call "gymnasium" for 3 or 4 years. there we choose what we want to study. after that we can go to what we call high school :) which i think is more advanced than your high school! i think our high school is like your collage...
I also did Computing A-level, only did physics AS level though (i took business studies instead).
I'm studying Computer Science Bsc at Reading.
Any good??Quote:
Originally posted by SLH
I'm studying Computer Science Bsc at Reading.
I wish i'd droped Physics after AS, I droped ICT after doing one exam, I just couldn't stand it, I got a B in the exam tho :D
yea it sounds like it will be. So what age would you finish school not including Uni or anything like that?Quote:
Originally posted by cyborg
i think our high school is like your collage...
Yeah it's pretty good. I didn't get much choice of modules this year, and i don't get any next year - but there are some good choices i can make in the 3rd year.
Also, Reading is the only Uni in the country to have a 'Virtual Reality Sphere' (not sure of it's official name).
Basically, it's a big room (spherical) with screens all around it. You go in wearing 3D glasses, and you get an effect like normal 3D glasses - except WAY better. With special gloves you can pick stuff up and throw things around etc. They even ported Quake3!! It's very cool. As a 3rd year project i'd love to design a game to work with it.
Make Space invaders :D
That sounds really cool, I want one :) I think I might of seen it on TV some time cos it rings a bell. I get my 3rd year as work placement, should be good with it being a gaming course :D.
That'd be cool. Are you planning on doing a 4 or 3 year course?Quote:
Originally posted by Electroman
I get my 3rd year as work placement, should be good with it being a gaming course :D.
Its a 4 year course, 1st and 2nd year and Uni then as I said one year work placement then another year back at Uni. Thing is I have a strong suspicion that they'll be using C++ for the course and I don't know it (I do have some books and am trying to learn it tho).
It's always good to know several languages anyway. We used Delphi in the 1st year - and are moving on to C/C++
If you're interested in games programming they're really the ones you need to be familiar with, as they are so standard.
Yea I know but I like VB, the debug tools are excelent :D.
Have you sen these game: http://vbgamer.strategon.com/ they were all made in VB, It has its strengths but I realise if you want to push the limits for games you do need to use something like C++. Pitty VB can't run like C++, unless .NET evens the ground :confused:
Yeah, i really did miss the debug tools.
I just hate it in Delphi when you try to find a variable's value and it says it cant access it due to optimisation - even when i turn it off!:mad:
Not sure about .Net speed wise, it could be a balance between ease of use and program speed. Might just end up being poor-mans C++ though.
I've heard the debug tools suffer in .NET well for VB at least they are reduced :( I think I heard something about the way VB exes are handled is going to be the same as how C++'s are when it comes to .NET, don't know how reliable this is tho. Basically , the way I read it, it seemed like the only differeance would be the language used to create it. :confused:
If that is the case then that means that .net applications should run faster than VB applications, and be comparable to C++ apps speed-wise.Quote:
Originally posted by Electroman
I think I heard something about the way VB exes are handled is going to be the same as how C++'s are when it comes to .NET, don't know how reliable this is tho.
As I said I don't know how reliable it is. so don't go betting your life on it to anyone. ;)
This is MS we're talking about after all. ;)Quote:
Originally posted by Electroman
As I said I don't know how reliable it is.
Here we go again, theres still a slight problem but its not too bad, see the next thread for details.
This is the area effect by the error, its sort of fliped round in these areas, I'll need a bit of time to work out why its doing this, but in the rest of the screen everythings displayed correctly. Note, the DownDirection parameter in the SetCamera call isn't needed anymore and I forgot to take it out. the camera also can't roll side ways anymore :(, but who uses that much :rolleyes:.
http://www.vbforums.com/attachment.p...postid=1491530