BBC BASIC for Windows
« Fractal landscape with D3D »

Welcome Guest. Please Login or Register.
Apr 5th, 2018, 11:38pm



ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018.
Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.

If you require a dump of the post on your message board, please come to the support board and request it.


Thank you Conforums members.

BBC BASIC for Windows Resources
Online BBC BASIC for Windows documentation
BBC BASIC for Windows Beginners' Tutorial
BBC BASIC Home Page
BBC BASIC on Rosetta Code
BBC BASIC discussion group
BBC BASIC for Windows Programmers' Reference

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Fractal landscape with D3D  (Read 822 times)
Torro
New Member
Image


member is offline

Avatar




PM


Posts: 25
xx Re: Fractal landscape with D3D
« Reply #6 on: Aug 15th, 2015, 09:06am »

ta da

http://bulletphysics.org/Bullet/BulletFull/

https://directxtk.codeplex.com/wikipage?title=GeometricPrimitive&referringTitle=Home

isn't already a object viewer in examples?
« Last Edit: Aug 15th, 2015, 09:13am by Torro » User IP Logged

David Williams
Developer

member is offline

Avatar

meh


PM

Gender: Male
Posts: 452
xx Re: Fractal landscape with D3D
« Reply #7 on: Aug 15th, 2015, 11:48am »

on Aug 15th, 2015, 09:06am, Torro wrote:
ta da

http://bulletphysics.org/Bullet/BulletFull/


We can all dream. wink

I'd give greater priority to a 3D utilities library (perhaps a 3DTOOLSLIB.BBC) I outlined earlier to DDRM, as a companion library to D3DLIB/D3D9LIB, etc.

Just a reminder of some of the functionality that a hypothetical 3DTOOLSLIB could offer:

- Collision detection
- Object loaders (to import from Blender, 3DS, etc.)
- Scene loaders
- Object and mesh manipulation
- 3D primitive object creation
- Procedural texture generators
- Object texturing functions
- Various 3D maths functions
- Various other utility functions

Sadly, the great effort involved in creating such a library, however, may just end up being largely a waste of time and energy. Sorry to be so negative about this.

Torro, have you seen DDRM's germinal/proof-of-concept, fractal landscape-based flight sim he posted to this board a few days ago? Check it out if you haven't already.


David.
--
« Last Edit: Aug 15th, 2015, 11:50am by David Williams » User IP Logged

Torro
New Member
Image


member is offline

Avatar




PM


Posts: 25
xx Re: Fractal landscape with D3D
« Reply #8 on: Aug 15th, 2015, 3:54pm »

David respect for what you did previously just don't end up a troll.

User IP Logged

DDRM
Administrator
ImageImageImageImageImage


member is offline

Avatar




PM

Gender: Male
Posts: 321
xx Re: Fractal landscape with D3D
« Reply #9 on: Aug 15th, 2015, 10:09pm »

Hi Guys,

I have made some progress. I have a model plane, but I am struggling to render the propeller disk semi-transparent. Simply setting the alpha value doesn't seem to hack it. I've played with various things in SetRenderState (such as alpha enable!), but some web sources suggest I need to play with SetTextureStageState as well. Anyone managed to make this work in D3D8 or 9 (I'm currently working with 9, to get Richard's declarations, and so the MSDN pages relate to what I'm doing).

I've managed to get ambient light working: you need to turn it on with SetRenderState, but also tell it to use the vertex colours. That gives a bit of "fill in" light, so the shadows aren't so harsh.

I'm also thinking about the map. It seems obvious that I can't render the whole world at full detail or everything will grind to a halt. I'm planning a low-res, large scale map, which will probable be hand-designed to include interesting places (including flat bits for airfields), and then a modified version of the fractal generator to generate the detailed landscape. Obviously I'll need to pass a seed and reset the RND function each time, so it comes up the same... I thought I could have 4, or maybe 9, buffers containing the local patches of territory around your position.

I haven't quite worked out how to implement that, though...

D
User IP Logged

David Williams
Developer

member is offline

Avatar

meh


PM

Gender: Male
Posts: 452
xx Re: Fractal landscape with D3D
« Reply #10 on: Aug 16th, 2015, 12:12pm »

Glad you've made some more progress, David.

I'm keeping tabs on this project of yours!

Admittedly, my own tinkerings with D3DLIB some years back never ventured into semi-transparent polygons (most likely because I didn't have the know-how).

David.
--

http://www.proggies.uk/
https://www.youtube.com/channel/UC1E2sxhlc9h9C82q6RFvAWQ
User IP Logged

DDRM
Administrator
ImageImageImageImageImage


member is offline

Avatar




PM

Gender: Male
Posts: 321
xx Re: Fractal landscape with D3D
« Reply #11 on: Aug 17th, 2015, 4:56pm »

OK, a further update.

I now have a model biplane and a model monoplane, including semi-transparent propellers and canopies. That's a bit of a problem, because you can see through the bottom of the plane (normals face the other way...).

You can fly the biplane around (currently using a "chase" view), look at the landscape, and watch the monoplane fly by and disappear (it flies across repeatedly).

I've posted it as an .exe on both wiggio (under games and graphics) and yahoo (under games):

Wiggio
https://wiggio.com/get_document.php?docid=7964547

Yahoo
https://xa.yimg.com/df/bb4w/fracland_Fly.exe?token=YRTx-2h-AQuTsWO1pe0s0_SEAarKtvXui1oxOAI959AnRh82m1NxEtI5MGslG5---buWF_2XvtfUSjxCk7OFFgXcwdG_yRSvHGSJx13iXCk2l63PYA&type=download

Still no physics model or interactions. My daughter likes flying under the earth, and up inside the mountains...

Best wishes,

D
User IP Logged

David Williams
Developer

member is offline

Avatar

meh


PM

Gender: Male
Posts: 452
xx Re: Fractal landscape with D3D
« Reply #12 on: Aug 17th, 2015, 5:38pm »

Splendid. smiley
User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

| |

This forum powered for FREE by Conforums ©
Terms of Service | Privacy Policy | Conforums Support | Parental Controls