Author |
Topic: 3D Gaming Project (Read 1756 times) |
|
Wildmooer
New Member
member is offline


Posts: 7
|
 |
Re: 3D Gaming Project
« Reply #24 on: May 4th, 2016, 12:38am » |
|
on Apr 24th, 2016, 9:12pm, Ric wrote:
Cool! I'd really like to see the code. I'm new to this and my 3D is still very crude.
|
|
Logged
|
|
|
|
Ric
Full Member
member is offline


Gender: 
Posts: 136
|
 |
Re: 3D Gaming Project
« Reply #25 on: May 5th, 2016, 12:03pm » |
|
I can not yet put multiple objects but that is only because I have only loaded the nodes for one. The depth I am working on, it is a simple calculation involving the z vector and then factor X and y. I will post on Wikisend tonight.
|
|
Logged
|
It's always possible, but not necessarily how you first thought. Chin up and try again.
|
|
|
Ric
Full Member
member is offline


Gender: 
Posts: 136
|
 |
Re: 3D Gaming Project
« Reply #26 on: May 5th, 2016, 7:57pm » |
|
Evening all. I was going to post the code on wikisend, but I cannot get the upload to work. I have given in!!! If anyone can tell me how to post the code some how, somewhere I will do so. Or I can email it.
Ric
|
|
Logged
|
It's always possible, but not necessarily how you first thought. Chin up and try again.
|
|
|
DDRM
Administrator
member is offline


Gender: 
Posts: 321
|
 |
Re: 3D Gaming Project
« Reply #27 on: May 6th, 2016, 08:23am » |
|
Hi Ric,
I've never used Wikisend, but might Github be a suitable option? I've used that in association with a MOOC course I did, and it seemed OK.
https://github.com/
I think the Wiggio forum and its file storage are still functional: you'll need to sign up to upload, but it's free:
https://wiggio.com/
Richard has now set up what looks something like a mirror of the old Yahoo forum on Groups.io:
https://groups.io/g/bb4w
I haven't really got to grips with that forum yet, but it looks like once you have signed in you have access to a file storage area, though my guess is that that would only be accessible to others who were members.
I'd certainly be interested to see what you've done - both in terms of code and function.
Best wishes,
D
|
|
Logged
|
|
|
|
DDRM
Administrator
member is offline


Gender: 
Posts: 321
|
 |
Re: 3D Gaming Project
« Reply #28 on: May 6th, 2016, 08:28am » |
|
on May 4th, 2016, 12:38am, Wildmooer wrote:| Cool! I'd really like to see the code. I'm new to this and my 3D is still very crude. |
|
Hi Wildmooer,
If you are relatively new to programming you may find Ric's code a bit intimidating - most of it is in assembler, I think!
It might be worth playing with the Direct3D library supplied with with BB4W -even that is tricky, but simple things (like a mapped rotating sphere!) are relatively straightforward - indeed a working demo is supplied (world.bbc, in the graphics folder of the examples).
Best wishes,
D
|
|
Logged
|
|
|
|
Ric
Full Member
member is offline


Gender: 
Posts: 136
|
 |
Re: 3D Gaming Project
« Reply #29 on: May 6th, 2016, 11:59am » |
|
Cheers D I will have a look at these tonight.
You are correct in assuming most of the code is in assembler, with only the setting of parameters in basic. I have loosely annotated it , but even so unless you are very au fait with assembler it will look like gobbledegook😋
Ric
|
|
Logged
|
It's always possible, but not necessarily how you first thought. Chin up and try again.
|
|
|
Ric
Full Member
member is offline


Gender: 
Posts: 136
|
 |
Re: 3D Gaming Project
« Reply #30 on: May 6th, 2016, 7:07pm » |
|
Hello again,
I have had a go at all the suggested methods of uploading my code, but without sounding to negative I feel like a blind man playing snooker. I have failed with every attempt. And I am thoroughly brassed off. I will keep updating where I am up to and post results via video on youtube. but unless someone is prepared to ring me up and walk me through some form of file sharing I am giving up. Sorry to those who are following, but I really cant get any of the methods to work.
Ric
|
|
Logged
|
It's always possible, but not necessarily how you first thought. Chin up and try again.
|
|
|
michael
Senior Member
member is offline


Posts: 335
|
 |
Re: 3D Gaming Project
« Reply #31 on: May 6th, 2016, 11:26pm » |
|
Dropbox is supposedly very good. And it has some high profile programmers behind it. Actually Richard was the one to recommend it to me so here is the link: https://www.dropbox.com/ I have it but have no major projects done to use it yet.
|
|
Logged
|
I like making program generators and like reinventing the wheel
|
|
|
Wildmooer
New Member
member is offline


Posts: 7
|
 |
Re: 3D Gaming Project
« Reply #32 on: May 8th, 2016, 5:06pm » |
|
Thank you for the advice. I'll try to understand the 3D library... if I'm able!
|
|
Logged
|
|
|
|
Ric
Full Member
member is offline


Gender: 
Posts: 136
|
 |
Re: 3D Gaming Project
« Reply #33 on: May 18th, 2016, 8:11pm » |
|
Latest update
I have now got to a point where I can transpose a picture on to the 3d shape.
Also I think I have found a way to upload the code. If this works do not to hard to break shape II, it has very few error checkers in the basic code. I would suggest 120 faces and radius of 200 to start.
Hopefully these links will get you to the files (you may have to register for pCloud)
https://my.pcloud.com/publink/show?code=XZ262mZySqsUb9LH608Gww9JTQE0LffWyPy
https://my.pcloud.com/publink/show?code=XZj62mZSB4pTArNQrHxz6VjRHWh70fHIukV
Both files need to be in the same folder to run.
Let me know how you get on  Ric
|
|
Logged
|
It's always possible, but not necessarily how you first thought. Chin up and try again.
|
|
|
David Williams
Developer
member is offline

meh

Gender: 
Posts: 452
|
 |
Re: 3D Gaming Project
« Reply #34 on: May 18th, 2016, 8:24pm » |
|
I downloaded the two files easily without any problems (no registration required), and the program ran beautifully on my Core i7. Nice bit of code, in a nice clear style!
David. --
|
|
|
|
Ric
Full Member
member is offline


Gender: 
Posts: 136
|
 |
Re: 3D Gaming Project
« Reply #35 on: May 19th, 2016, 5:13pm » |
|
Nice to see an old dog (that would be me) can be taught new tricks . Could you let me know how many frames per second it runs at on your corei7 please David. Could you run a test on shape 1 with 120 faces and a radius of 200. I have an old lap top and it runs about 27 fps. I am interested to see what can be produced on a modern spec machine.
Many thanks
Ric
|
|
Logged
|
It's always possible, but not necessarily how you first thought. Chin up and try again.
|
|
|
Ric
Full Member
member is offline


Gender: 
Posts: 136
|
 |
Re: 3D Gaming Project
« Reply #36 on: May 19th, 2016, 5:20pm » |
|
Sorry I forgot to say,
The code runs for any configuration of sides as long as they all have four nodes, my next step is to design a package to enable the construction of such objects, my son would love to see a dinosaur! But more likely an inanimate object like a car.
may take a few weeks as I am limited to a few hours coding a week, but I am keeping the dream of a 3d game alive.
Ric
|
|
Logged
|
It's always possible, but not necessarily how you first thought. Chin up and try again.
|
|
|
David Williams
Developer
member is offline

meh

Gender: 
Posts: 452
|
 |
Re: 3D Gaming Project
« Reply #37 on: May 19th, 2016, 7:56pm » |
|
on May 19th, 2016, 5:13pm, Ric wrote:Nice to see an old dog (that would be me) can be taught new tricks . Could you let me know how many frames per second it runs at on your corei7 please David. Could you run a test on shape 1 with 120 faces and a radius of 200. I have an old lap top and it runs about 27 fps. I am interested to see what can be produced on a modern spec machine. |
|
I get 72 fps.
I don't actually have very good graphics hardware (integrated graphics - Intel HD Graphics 4600, rather than separate graphics card). Of course, in the case of your program, it's the CPU that's doing the rendering anyway so a high-end graphics card is unlikely to make any difference to the frame rate. I'm using a Core i7-4790 @ 3.60 GHz.
David. --
|
|
Logged
|
|
|
|
Ric
Full Member
member is offline


Gender: 
Posts: 136
|
 |
Re: 3D Gaming Project
« Reply #38 on: May 19th, 2016, 9:29pm » |
|
Thanks David 72 is quite impressive.
The goal I set myself was to write a 3d game using BBC Basic (including Assembler) without using any libraries or add-ons. If I succeed and it runs at an acceptable frame speed I will then move on to the graphics card and openGL, but for now all is good.
Ric
ps. I might make the routines into their own library for others to use.
|
|
Logged
|
It's always possible, but not necessarily how you first thought. Chin up and try again.
|
|
|
|