Ogre3D (www.ogre3d.org) is a multi-platform, open-source 3D rendering engine.

learn more… | top users | synonyms (1)

0
votes
1answer
27 views

In Ogre, how to get the depth buffer value?

I am rendering an object to a texture using the following setup code which I copied from Ogre's rendering to texture tutorial: Ogre::RenderTexture *renderTexture = ...
0
votes
0answers
21 views

What do I need to implement in order to make my engine based on Ogre3D [closed]

I want to make an open source realtime 3D engine using Ogre3D. I don't talk about the game system such as fightings, gameplay, maps... B/c It will be the scripting part. I'm taking about the engine ...
0
votes
0answers
51 views

How do I make my character move during its animation?

I have an OGRE animation problem: I want to control a character with the WASD keys, but pressing W, the character only moves once the animation completes. I want to move the character with the ...
4
votes
0answers
69 views

Ogre PSSM Grass Receiving Shadows

So I made the switch to Ogre3D (v1.7) and using PagedGeometry. What I'm trying to do is make a simple scene with a terrain, some trees and grasses. In a nutshell, I would like to achieve this kind of ...
0
votes
0answers
40 views

Multiple Body Code?

I've been working on one game, 3D RPG with Ogre graphic engine and I wondered if there is a code for multiple bodies? Currently there is only one body model and if I want to add a new one, the ...
0
votes
1answer
160 views

Can't sample texture in HLSL using DX11

Environment: Windows 7 x64 Visual Studo 2012 DirextX11 HLSL Shader Model 5 Ogre 1.9 Okay, so I'm trying to sample a texture in my pixel shader but I'm coming across some strange problems. Here's ...
0
votes
1answer
94 views

How to fix this existing shadow shader/material with alpha textures?

I hope I could get some help here in finally resolving this problem of mine re: shadow casting with alpha textures. Here's a screenshot on what I am hoping for as a result: A friend of mine just ...
1
vote
1answer
278 views

Blender wont export textures (materials) to OGRE3D .mesh

i am exporting a model from BLENDER to OGRE3D using the blender2ogre script. the desigre output is a single .mesh file but i know there should be also materials scripts that i should copy to my ogre ...
0
votes
0answers
136 views

OGRE Overlay does not display text

I want to use the OGRE overlay system to display text in the render window. The panel with red background is rendered correctly, but the text does not appear.. My setup consists of an overlay script ...
1
vote
1answer
272 views

What is Ogre::String?

I was working with the OGRE .NET bindings (MOGRE) for quite a long time. To improve my (not that good) C++ skills, I am switching from C# to C++. After implementing a basic OGRE application, I was ...
1
vote
1answer
437 views

glsl shader to allow color change of skydome ogre3d

I'm still very new to all this but learning a lot. I'm putting together an application using Ogre3d as the rendering engine. So far I've got it running, with a simple scene, a day/night cycle system ...
1
vote
1answer
298 views

How to create a sun billboard with Ogre3d

I've been working with a few different engines alongside trying to code my own project. Rather than rewrite an entire renderer, etc I am using Ogre3d. To begin with I am trying to implement a very ...
1
vote
1answer
152 views

Draw character silhouette when not visible

I have a mesh representing my character. I want to give it a partially transparent greyish silhouette when other objects are blocking it from view of the camera. I'm using Ogre3D, and GLSL as a ...
2
votes
2answers
220 views

Spherical / Relative Gravity

I'm working on an Ogre3D + Bullet project that involves planets in a solar system. For all intents and purposes, I'm looking to give each planet it's own gravity sphere. So far, all I've found are ...
1
vote
0answers
97 views

Wrong UV mapping when using small textures and positions

I am using a really small texture (64x64) and when I use it as a UV map on my mesh, there are some incomplete lines from the color of the other side of the UV map rendered as well (in this case, ...
1
vote
0answers
127 views

Bad texture on model with different GPU [closed]

I have some kind of distortion on the texture of my 3D model. It works perfectly well on an AMD GPU, but when testing on a integrated Intel HD graphics card it has a weird issue. I don't have a ...
2
votes
1answer
163 views

Why is there high performance hit with many meshes?

I am currently reading upon Geometry Instancing, as I want to render a lot of animatable objects on the screen. However I have come to a more fundamental question first: Why do I even need to use it? ...
1
vote
2answers
203 views

General visual effects to meshes/entities

I am trying to add some visual effects to some entities, meshes, or whatever you want to call them as they are looking pretty dull in my game right now. What I want to achieve is this: ...
0
votes
1answer
84 views

Shadows go through meshes, and also being applied to itself

I am using Ogre3D and I am using stencil shadows for my character. They work pretty well, but I have 2 problems: first, the shadow is applied to the entity it is casting the shadow, and secondly, the ...
3
votes
1answer
219 views

Continuous world and very large levels: going around the FPU limitations with Ogre3D

I'm currently using Ogre3D, and I'm wondering is it's possible to have a very large level (hundreds of kilometers) using the right scenemanager. Storing or having the level is not a problem, since I ...
2
votes
1answer
140 views

Edges drop out when rendered at a long distance

I have this weird effect when rendering small objects at a long distance. I already tried using anisotropic filtering but maybe I am not doing it right. Material script: material Platform/Border { ...
3
votes
1answer
694 views

How do I create a manual object with colors for each vertex?

How do I create a shaded manual object with colours for each vertex? Eg if ogreObj is the Ogre::ManualObject : ogreObj->begin("BaseWhiteNoLighting", Ogre::RenderOperation::OT_TRIANGLE_LIST); ...
1
vote
1answer
85 views

Variable sized cube texture stretching problem

I have a 1x1x1 cube made in Blender with a simple UVW mapping. It represents a 3D platform of variable size. The thing is that this cube gets resized a lot, and I want to draw a "border" of a ...
0
votes
2answers
1k views

Draw wireframe overlay of model in GLSL

I have a 3D model that has a GLSL script, and I want to draw a line on each border of its polygons in the fragment shader. What should I do? Note: I am using Ogre3D, so I can't use OpenGL's ...
0
votes
1answer
113 views

2D vector to Quaternion

I have a 2D vector (with only X and Y), and my engine only supports orientation through Quaternions. How do I translate a 2D vector to a quaternion? The X and Y represent the direction (so X = 0 ...
1
vote
2answers
1k views

Entity system game design and input handler

I have started create a lightweight game engine with Ogre and C++. I have a abstract component class and an abstract entity class. #ifndef ENTITY_HPP_ #define ENTITY_HPP_ #include <string> ...
0
votes
2answers
1k views

How to set the object's world position in bullet?

In my Ogre3d application I am first changing the parent of a node like this: // save object "Cube" into node*; then ... Vector3 absPos(node->_getDerivedPosition()); Quaternion ...
2
votes
1answer
42 views

Stick 2 btRigidBodies together

I have a platform with btBoxShape as shape, and I want to rotate it every certain amount of time to simulate a rotating platform. Right now I rotate it with Ogre (my rendering engine) and use a ...
0
votes
1answer
546 views

Detect when a bullet rigidbody is on ground

I have a rigidbody that is on top of a plane or another rigidbody. How do I check if said rigidbody is on top of it? I tried to check the Y-part of the velocity but it is never 0, it is always a ...
4
votes
3answers
485 views

How to check whether a ray cast hits a specific side of an object?

I am using Ogre3d to develop a 3d simulation/game. One task is to determine whether the user has focused the camera on a specific object. So I cast a ray from the camera to what is currently in the ...
2
votes
0answers
283 views

Quaternion to direction vector - flipping

I've kinda solved this myself by adapting the Camera::setDirection code from OGRE to work for my need: Now I have the following code: Vector3 boneDir = getBoneWorldOrientation(mEntity, mHips) * ...
0
votes
1answer
311 views

Projecting world coordinates to screen coordinates issue - points disappear when origin not in view

I am trying to implement a 2d line drawing effect on a 3d mesh using Ogre. In order to do so, I perform silhouette detection on the lines of the object (this works) and then project these lines from ...
6
votes
1answer
484 views

How can I debug _why_ glDrawArrays is very slow?

I'm working on a game that uses CEGUI and Ogre. Recently, we've discovered that some of our customers with GeForce4 MX 4000's, performance is terrible. After a night spent debugging, I've tracked ...
5
votes
1answer
240 views

How to pass depth buffer from OGRE to CUDA?

I am using OGRE for rendering some objects. At every frame, I would like to pass the resulting depth buffer to CUDA for running some kernels on it and computing a result. How can I achieve this? How ...
0
votes
2answers
680 views

Game state management?

I'm running in circles here trying to figure out how to implement game states! Many of the articles I have read use an abstract class that game states inherit, and another "manager" class that ...
1
vote
2answers
352 views

Jump without bouncing in physics engine

I am using Ogre3D as my rendering API, and OgreBullet as my physics engine. I have an test entity that when the y part of the velocity is 0 and spacebar is pressed, the velocity changes to, lets say: ...
1
vote
3answers
241 views

How to put a “mask” in front of the camera in Ogre?

Is there any easy way to put kind of a "mask" in front of the camera in an Ogre 3d application, so that parts of the scene are always covered by that mask? The idea is that I want to have an effect as ...
0
votes
1answer
230 views

Ogre: Light not reflecting correctly

In my Ogre 3d scene I have an empty box, and within that there are three small cubes. The camera is also within the box, facing the three small cubes. The user can move and rotate the camera with the ...
1
vote
0answers
148 views

How to set object's / node's absolute rotation correctly?

Usually when I want to rotate an object/node in my Ogre scene I call the node's rotate() method. That rotates the node locally relative to it's current rotation. So for example, when I start with 0 ...
3
votes
1answer
149 views

How to map absolute Joystick position to object rotation?

In my (Ogre) 3d scene I have an object that should be rotated locally based on Joystick input. I have a Joystick with min/max values of [-32767, 32767] on both X and Y axes. When the Joystick is in ...
0
votes
2answers
129 views

Min. Distance for Spotlights in Ogre3d?

I have a simple scene with only one empty box. Within that box I have the camera attached to a scene node, which the user can move (translate/rotate). Additionally a spotlight is attached to the ...
1
vote
1answer
361 views

Need help with a complex 3d scene (using Ogre and bullet)

In my setup there is a box with a hole on one side, and a freely movable "stick" (or bar, tube). This stick can be inserted/moved through the hole into the box. This hole is exactly as wide as the ...
3
votes
3answers
3k views

How do I export my Blender model to OGRE XML format for jMonkeyEngine 3?

I'm an amateur software engineer with several simple 2D-game projects under my belt. I'v recently turned my attention towards creating a basic 3D game, nothing too fancy, just to get a grip on things. ...
4
votes
1answer
516 views

Why game engines usually don't offer a vector3.rotate method? [closed]

Game engines like Three.js, Ogre3d and Unity3d often don't provide a default rotate method on their vector class. You usually have to do something like: rotated = vector.applyQuaternion( new ...
3
votes
1answer
154 views

Scaling and rotating texture onto another texture by raw buffer data

I've been messing with C++ AMP and OGRE in attempt to make writing to/altering textures to my liking easier on my behalf. In this I've been trying to draw a texture onto my "dynamic" texture with ...
3
votes
2answers
463 views

Choosing a correct collisionshape for a voxel engine

I am building a voxel engine on Ogre with bullet as a physics engine. I separated my blocks into chunks to help batch together render calls. At the moment, each chunk's physics is handled by a ...
2
votes
1answer
136 views

Is there a fully featured OBB class for Ogre3D? [closed]

Is there a fully featured OBB (Oriented Bounding Box) class for Ogre3D? I don't think there is one by default but I am looking for an alternative which has all the features of the AxisAlignedBox ...
2
votes
1answer
621 views

How to calculate collision normal between two AxisAlignedBox's?

I'm writing a physics simulation in Ogre3D and I'm trying to figure out how to calculate the collision normal between two Ogre::AxisAlignedBox's. I am checking for collisions using the "intersects" ...
6
votes
1answer
664 views

Spaceship interiors: How to approach, implementation-wise?

I'm creating a 3D space game using Ogre3D for graphics with C++ and one of the features is to be able to freely wander around spaceship interiors, but I am lost with how to implement it. Here is what ...
1
vote
2answers
804 views

Mouse position to world position for Camera

I am working on a case where when the mouse is moved upwards, the camera must also move upwards. I understand that for mouse picking we perform ray casting along a plane. I think my case is little ...