Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!


1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


deftware

Member Since 19 Oct 2005
Offline Last Active Today, 12:50 AM

Posts I've Made

In Topic: Unity3d Simple Soil Simulation

21 April 2015 - 01:51 PM

 

You can draw such terrain with a single quad. Just create a texture either by rendering your terrain into it somehow or by filling it texel by texel yourself.

how will the physics work then ? should i write it by myself?
 

 

 

You update the texture every frame. You handle positions of the dirt as a series of dirt-columns across the screen. Every frame you update by breaking columns where an explosion hits them (or crater, etc) and then output that to the texture. To speed it up you could also write just the changing parts of the world to the texture, instead of the whole thing.

 

There is also the requirement that you can code simple abstract concepts, like an array of dirt columns, and be able to generate textures.

 

Whenever I want to do something that I don't know how to do, there is always learning involved. So, be prepared to learn something.


In Topic: Quake 3 and John Carmack

15 April 2015 - 12:02 AM

q3dm17 for life.


In Topic: Programming fake 3d using sdl?

12 April 2015 - 02:39 PM

Wyrframe is pretty much dead-on.. Keep in mind that an actual 3D solution would be more difficult than actually having a sphere, because you can't actually map a checkerboard texture to a sphere in 3D space.


In Topic: First person wall sliding, what am I missing?

10 April 2015 - 07:10 PM

 The reason something slides when it hits a surface (if it has no elasticity and doesn't bounce) is that it's movement along the normal of the surface is absorbed by the surface. The more an objects movement is aligned with the normal of the surface, the more of its velocity gets absorbed. If the object is moving perpendicular with the surface normal (ie: it is moving along the surface, parallel to it) then none of its velocity will be removed from it.

 

Maybe if you explained what you are experiencing with your new code I could be more specific about what's going on with it.


In Topic: winsock UDP not working

07 April 2015 - 03:35 PM

but for the LAN IP you want the one that's typically starting with 192.168.X.X

 

The internet IP won't help you unless the computer is directly hooked up to the internet connection, and not a wireless router, OR if you have port forwarding set up so the router directs all traffic coming in on a specific port to the specific machine you want it to go to on your LAN.


PARTNERS