Questions tagged [raycasting]

A rendering technique to create a 3D perspective in a 2D map

1193 questions
0
votes
1 answer

How can i use triangle picking to determine the exact location of a triangle in world space coordinates?

Im trying to implement point and click movement in my game, but at the moment im stumped about how i can select parts of a mesh for the player to walk to. So what ive done is ive got a navigational mesh in my game, i can select points from it, but…
Clockworks
  • 41
  • 7
0
votes
1 answer

Trouble with raycasting in Unity 3

I'm trying to script my AI on a simple way. The AI does a raycast in front, left and right of it. Then it takes a random direction in a way that doesn't contain a "Boundary"-element. First, my Update() checks if it's time to calculate a new…
Joetjah
  • 6,292
  • 8
  • 55
  • 90
0
votes
1 answer

Ray casting for collision

Hi im trying to implement ray casting into my 3d game for many uses I have read lots of things about ray casting, i know that you need an origin,direction and length, i have these. What im having trouble is with finding which angle to shoot the ray…
user1502974
  • 21
  • 1
  • 5
0
votes
0 answers

Is it possible to convert terrain rendering algorithm from flipcode to "full 3d" renderer?

I found this (http://www.flipcode.com/voxtut/) example of terrain rendering algorithm based on voxel technology and converted it to "full 3d" renderer. I mean, that in heightmap there is only one z(up) coordinate for a pair (x,y) and in "real 3d"…
0
votes
1 answer

Augmented Reality + Bullet Physics - trouble with rayTest/Ray picking

I am trying to pick objects in the bullet physics world but all I seem to be able to pick is the floor/ground plane!!! I am using the Vuforia SDK and have altered the ImageTargets demo code. I have used the following code to project my touched…
0
votes
1 answer

3D view frustum culling, ray casting

I need additional theory on view frustum culling to better understand how to implement it. I understand that ray casting is involved in order to figure out what objects are in front, thus figuring out which objects not to render. I am concerned…
Johnathan
  • 787
  • 4
  • 10
  • 21
0
votes
1 answer

OpenGL picking and finding hitpoint of texture

I'm currently into looking into picking using a ray. I can find which model is selected, but how can I retrieve the position on the texture which is picked? I'm talking about a quad in this case. Edit: Also, if I want to check whether the hitpoint…
RobotRock
  • 4,211
  • 6
  • 46
  • 86
0
votes
1 answer

perspective raycasting

can someone point me to some methods for perspective ray casting. I have seen ray splitting techniques. What other casting methods are available? Which one is easiest to implement?
Mark
  • 1,333
  • 1
  • 14
  • 21
0
votes
1 answer

Is it possible to make point vector reycast in pcl?

I have a 3d points world. I have point in it a [x,y,z] and direction (azimuthal angle θ, and polar angle ) I want to get point b [x2,y2,z2] where my ray (sent from my point a into direction) would stop. (only from one point and only for one…
myWallJSON
  • 9,110
  • 22
  • 78
  • 149
0
votes
1 answer

In CUDA, how to translate screen space coordinate to world space coordinate in the Kernel Function

Here, I'm trying to add ray-casting into a real 3D scene. As we know, in ray-casting, in order to cast the ray, we need to get the direction of ray. The first point in the ray is the start point of ray which I can get from glLookAt. The second point…
TonyLic
  • 647
  • 1
  • 13
  • 26
0
votes
2 answers

Here is a Volume Render result, how to interact with other 3D object

I've implemented the volume render using ray-casting in CUDA. Now I need to add other 3D objects (like 3D terrain in my case) in the scene and then make it interact with the volume-render result. For example, when I move the volume-render result…
TonyLic
  • 647
  • 1
  • 13
  • 26
0
votes
1 answer

iOS GLSL Spherical Harmonic Shader. How Do I Raycast Using the iOS GPU

I am beginning an Spherical Harmonics shader project for an iOS app I am writing. I have begun by reading this excellent in-depth paper on the subject (PDF) - http://bit.ly/aQmax3. The paper describes a scene pre-processing step that involves…
dugla
  • 12,774
  • 26
  • 88
  • 136
-1
votes
0 answers

How to know when player character is grounded

I'm learning to use Unity Engine and I've been working on the basis for a 2D platformer, and having a problem with the player character being able to jump indefinitely. I've created an UniversalMovementHandler class for the handling all movement…
LSD_Sumus
  • 1
  • 4
-1
votes
2 answers

How can I fix my Raycast so it returns true when there are tiles beneath the player

In my platformer, my player clamps onto the sides of tiles and hooks there. I want to remove this so the player can't clamp onto the sides of any tiles on my Tilemap. In my movement script, I tried to add a Raycast that shoots downwards. I excepted…
-1
votes
1 answer

Fixing Ray-Casting algorithm

I've been trying to practice Ray-casting algorithm. I'm facing 2 problems: My casting ray does not align with the player's point of view and represent incorrectly the feature of a casting ray(ex: it will get short if hit a wall) Sometime my…