Questions tagged [rajawali]

Rajawali is a 3D engine for Android based on OpenGL ES 2.0/3.0

Rajawali is a 3D framework for Android built on top of the OpenGL ES 2.0/3.0 API. Its main purpose is to make things easy and to take away the hard work that’s involved in OpenGL programming, allowing the user to focus on creativity instead of boiler plate GL code.

References: rozengain.com/blog

Reference and Tutorials

Rajawali Examples On The Market

133 questions
3
votes
1 answer

Ray object picking on Android OpenGL ES

I'm drawing a globe using OpenGL on Android platform and trying to find a point on the sphere where user tapped. I am new to OpenGL at all and I'm using opensource lib Rajawali as it is show in example Touch & Drag but if someone know better way to…
oleg.semen
  • 2,901
  • 2
  • 28
  • 56
3
votes
0 answers

Add RajawaliRenderer as a View

I'm really new to Rajawali and was hoping to use a lot of their 3D functionality with the Android camera. My goal is to display a 3D object on a camera SurfaceView. When doing this with a 2D object using native Android, the steps were: Get camera…
Austin
  • 1,018
  • 9
  • 20
3
votes
1 answer

Dynamically adding 3d objects and textures in android

I am using Rajawali for 3d rendering in my augmented reality project in android. I want to add 3d models from remote server on marker detection. I also want to change the texture dynamically after downloading PNG from remote server. Now that 3d…
gooner
  • 349
  • 1
  • 4
  • 17
3
votes
1 answer

OpenGL shaders: How do I move each vertex separately?

I am trying Rajawali library for Android to draw some basic 3d objects on the scene. There is a sample 2000 planes, which show how to render huge amount of vertexes very "cheaply" with one shader. I can pass array of vertexes to the shader and draw…
dilix
  • 3,761
  • 3
  • 31
  • 55
2
votes
0 answers

GLES20.glGetString(GLES20.GL_EXTENSIONS) returns null when loading 3D model using Rajawali framework

I am trying to get my 3D model in my scene for the first time using: org.rajawali3d.loader.LoaderOBJ I am unable to get it working. the app keeps crashing with the error below. Digging in the code I found that the part that makes it crash is this…
Traoré Moussa
  • 433
  • 1
  • 6
  • 22
2
votes
0 answers

Serialize and save 3d object with Rajawali

I try to serialize and save (local) the 3d object with rajawali, I try with compile version ; org.rajawali3d:rajawali:1.0.186-SNAPSHOT@aar and org.rajawali3d:rajawali:1.1.970 but I haven't any access to "ExportType" I try to change "ExportType"…
2
votes
0 answers

Rajawali Loading .FBX File

I have downloaded latest Rajawali examples. I have tried to load .FBX file downloaded from internet put file in raw dir (download from here https://free3d.com/3d-model/wolf-rigged-and-game-ready-42808.html) My class is here try { …
javagc
  • 846
  • 1
  • 17
  • 37
2
votes
1 answer

How to convert between sensor quaternion and 3d camera quaternion?

I get a quaternion from Android's Sensor.TYPE_ROTATION_VECTOR fused sensor using getQuaternionFromVector(). I want to use that quaternion to control the camera of my Rajawali app. The values (w, x, y, z) I get from the sensor are (phone in…
jonasb
  • 1,847
  • 1
  • 17
  • 15
2
votes
0 answers

Adding a separation line in Rajawali cardboard

I got my full virtual reality app working with the rajawali 3D but would like to have a separation line just between the 2 images. Is there any way or setting how i could achieve this ?
2
votes
1 answer

How to start using rajawali vr

I'm using Android Studio. I want to use Rajawali library, especially the vr package. I add the following line to build.gradle as described in GitHub. compile 'org.rajawali3d:rajawali:1.0.325@aar' Then I am able to use some classes in Rajawali…
Jeffrey Chen
  • 1,777
  • 1
  • 18
  • 29
2
votes
0 answers

Rajawali Carboard OBJ File

I just started using Rajawali and the Cardboard SDK (the integration that you can find in Rajawali’s repository). Based on the examples provided (loaders) in the repository and following the instructions to set up a new project I have created an…
2
votes
0 answers

Object loaded through LoaderOBJ parser does not position relative to the real world

I have altered the code from the Google samples' AugmentedRealitySample like this: Boolean useBasicObjectInsteadOf3DModel = false; if (useBasicObjectInsteadOf3DModel) { // This is the original code provided by the Google…
andMarkus
  • 960
  • 1
  • 8
  • 16
2
votes
1 answer

How to avoid a sphere from turning upside down when user rotates it, in OpenGL ES 2.0/ Rajawali?

I'm trying to make a 360video player app for Android. So far I've managed to create a sphere and project the video on to it. I also have an Arcball camera that follows the sphere in order to handle user touch-events and object rotations. I've…
SMalpica
  • 128
  • 10
2
votes
1 answer

How to know if an 3DObject is Looked at in VR

I am using RajawaliVR library. I have added a plane and applied texture to it. Know I want to know when my object is being looked at so that I can trigger some even. Is there anything in RajawaliVR or google cardboad that can help me achieve this. …
Subir Kumar Sao
  • 8,171
  • 3
  • 26
  • 47
2
votes
1 answer

How to move Camera in Rajawali Virtual Reality framework for android?

This is the link of Rajawali VR example : https://github.com/MasDennis/RajawaliVR I want to add a feature that the user can move the camera around in the scene just like a FPS game such as Counter-Strike. so,I write this code in the…
1
2
3
8 9