Author |
Topic: 3D Gaming Project (Read 1744 times) |
|
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.
|
|
|
Ric
Full Member
member is offline
Gender:
Posts: 136
|
|
Re: 3D Gaming Project
« Reply #39 on: May 26th, 2016, 10:36pm » |
|
Evening,
I was going to start a design package to help develop 3D objects, but there was one thing missing from the current project. Interpolation. Here is he link to the improved routine.
https://my.pcloud.com/publink/show?code=XZKQvmZBr2Er3lU0wYDDMLo5twkzpU53LhX
Have a play with the number of "shadepolations" and see what you think. Try a low number of faces(20) and high interpolation (even 2 CALLs has a good result).
Could some one have a go at shape 1, 90 faces, 200 diameter and 2 then 3 shadepolation CALLs, and let me know the fps and the machine you are running on.
This new routine now shades the whole screen in anticipation of multiple objects so I am expecting it to be slower than last time.
Thanks Ric
|
|
Logged
|
It's always possible, but not necessarily how you first thought. Chin up and try again.
|
|
|
sveinioslo
Developer
member is offline
Posts: 64
|
|
Re: 3D Gaming Project
« Reply #40 on: Jun 3rd, 2016, 07:19am » |
|
Nice work !
shape 1, 90 faces, 200 diameter 2 shadepolation CALLs = 92 fps. shape 1, 90 faces, 200 diameter 3 shadepolation CALLs = 86 fps. Laptop, 64 bit windows 10, Core i7 4720 2.6 GHz.
Svein
|
|
Logged
|
|
|
|
Ric
Full Member
member is offline
Gender:
Posts: 136
|
|
Re: 3D Gaming Project
« Reply #41 on: Jun 4th, 2016, 12:53pm » |
|
Thanks Svein, I noticed in your thread, 256 thread png you have code that appears to run multiple threads at the same time. Have I read this correctly? If so I would be very interested in your opinions about moving my project on to encompass the technique.
Regards
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 #42 on: Jun 8th, 2016, 9:13pm » |
|
Here is the latest update.
It is one for Michael , it has two objects and depth
https://my.pcloud.com/publink/show?code=XZgaqbZhR9P9v2qUByqkng2XcsCg7oSCIp7
Ric
PS I am now working on the design package to create complex shapes.
|
|
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 #43 on: Jun 9th, 2016, 08:44am » |
|
Hi Ric,
That's coming along well - I get 138 fps, which gives you quite a bit in hand for all the other scene elements and the game engine...
...you'll have a custom implementation of Direct3D soon...
D
|
|
Logged
|
|
|
|
Ric
Full Member
member is offline
Gender:
Posts: 136
|
|
Re: 3D Gaming Project
« Reply #44 on: Jun 9th, 2016, 3:47pm » |
|
Ha Ha, Cheers D, Should be easier to use
|
|
Logged
|
It's always possible, but not necessarily how you first thought. Chin up and try again.
|
|
|
|