Liberty BASIC Community Forum
« Ray Tracing? »

Welcome Guest. Please Login or Register.
Mar 29th, 2017, 04:12am


Rules|Home|Help|Search|Recent Posts|Notification


« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Ray Tracing?  (Read 224 times)
Noble D. Bell
Board Moderator

member is offline

Avatar




PM

Gender: Male
Posts: 927
xx Ray Tracing?
« Thread started on: Nov 26th, 2015, 09:12am »

I am by no means a game or graphics programmer. I write business software for a living.

I have the desire to convert my text adventure game tool kit I wrote a few years back into a graphics application. For me a major under-taking.

I am looking for a way to create something similar to the image in this link.

http://www.old-games.com/screenshot/3887-9-bard-s-tale-1.jpg

I want to be able to represent a flat 2-d drawing of a dungeon as a 3d-like walkthrough.

I am thinking that it is called ray tracing?

Any help or thoughts?
User IP Logged

Thank you and God bless,
Noble D. Bell
http://www.noblebell.com
cundo
Guru
ImageImageImageImageImage


member is offline

Avatar




PM

Gender: Male
Posts: 602
xx Re: Ray Tracing?
« Reply #1 on: Nov 26th, 2015, 10:01am »

I think raytracing ( trigonometric functions ) is not needed, but it will look amazing if you go with that. The classic 'first person' dungeon games were step by step games, not real 3D. No rotation, just fixed movement. I'm thinking in Eye of the Beholder, Dungeon Hack, Might and Magic and the like. That engine would be easier to code. After that, for something more 3D with 360 degrees of rotation comes ray casting, then ray tracing.
Someone around here, I don't remember who was, wrote an engine for creating dungeons in the first person perspective, with the tiles included as bmps files. I will do a search using some key words and I will try to find it.

User IP Logged

cundo
Noble D. Bell
Board Moderator

member is offline

Avatar




PM

Gender: Male
Posts: 927
xx Re: Ray Tracing?
« Reply #2 on: Nov 26th, 2015, 10:17am »

Yea, those are the types of games I am thinking of too.

Are there separate graphics for each screen in each step? That would seem like a lot of graphics if it were.

User IP Logged

Thank you and God bless,
Noble D. Bell
http://www.noblebell.com
cundo
Guru
ImageImageImageImageImage


member is offline

Avatar




PM

Gender: Male
Posts: 602
xx Re: Ray Tracing?
« Reply #3 on: Nov 26th, 2015, 11:16am »

The idea would be to compose each screen while playing, like if there is a wall at the left create a sprite there, and if there is a door in front, put a wall and then the door over it. Reading the map from the 2D array, and controlling the player using that 2D map.
The file I was talking about was uploaded to the LBdownloads site, so is not available anymore. I probably have the file saved somewhere.
User IP Logged

cundo
Rod
Global Moderator
ImageImageImageImageImage


member is offline

Avatar

Graphics = goosebumps!


PM

Gender: Male
Posts: 5216
xx Re: Ray Tracing?
« Reply #4 on: Nov 27th, 2015, 01:53am »

This is classically called Ray casting, you have "textures" which are repeatedly drawn in perspective. One texture may be a door the next a wall. This is the original discussion, there is one fresher one to search out.

http://libertybasic.conforums.com/index.cgi?board=LB3&action=display&num=1396519122
User IP Logged

DRocks
Full Member
ImageImageImage


member is offline

Avatar




PM

Gender: Male
Posts: 244
xx Re: Ray Tracing?
« Reply #5 on: Nov 27th, 2015, 07:26am »

I have something that is a little like pool of radiance engine, but it is very rough. I was shooting for an unlimited adventure engine where you could build and play your own adventures like pool of radiance. If you would like I could send it too you or upload it to the liberty yahoo file site.

****Just to warn you it is not very pretty code****
User IP Logged

Noble D. Bell
Board Moderator

member is offline

Avatar




PM

Gender: Male
Posts: 927
xx Re: Ray Tracing?
« Reply #6 on: Nov 28th, 2015, 09:23am »

Excellent material. I plan on getting some time I can dig into this code and take a look. It looks like this is what I have in mind. I just need to understand it and then make some tweaks and we should be golden.
User IP Logged

Thank you and God bless,
Noble D. Bell
http://www.noblebell.com
Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

Rules|Home|Help|Search|Recent Posts|Notification

Donate $6.99 for 50,000 Ad-Free Pageviews!

| |

This forum powered for FREE by Conforums ©
Sign up for your own Free Message Board today!
Terms of Service | Privacy Policy | Conforums Support | Parental Controls