Unanswered Questions
11
votes
0answers
497 views
How can I stop Substance's runtime texture caching?
Procedural textures with the Substance Engine seem to update very quickly if you turn off caching, modify one exposed variable at a time, modify it frequently, and even then only after you've ...
5
votes
0answers
135 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 ...
5
votes
1answer
836 views
Unity3D - How to tessellate 2D sprites?
I use dynamic vertex lighting on 2D sprites. On larger sprites the lighting is uglier than on smaller ones. This is because every sprite is just a quad of two triangles. Not enough vertices there for ...
5
votes
0answers
121 views
How do I convert a Source engine NPC model to a player model?
The Source engine's NPC and player models differ: An NPC model applied to the player has no animations. It cannot walk and holds its arms out to the side by about a foot. The weapon is held in the ...
5
votes
0answers
172 views
LibGDX controllers: how to fix crashes in JRuby?
I'm using JRuby with LibGDX and it's been going quite swimmingly, save for a crash I experience every time I try to use the controllers extension.
Here's a basic rundown:
I've required all the ...
5
votes
0answers
780 views
How to occlude lights in Unity3D?
First off, I own Unity Pro.
I've been looking in to occluding lights when they aren't being viewed for a while now to improve performance. The main methods I ran in to were using BecameVisible() and ...
5
votes
2answers
3k views
Unity: how to apply programmatical changes to the Terrain SplatPrototype?
I have a script to which I add a Terrain object (I drag and drop the terrain in the public Terrain field).
The Terrain is already setup in Unity to have 2 PaintTextures: 1 is a Square (set up with a ...
5
votes
0answers
171 views
How can I convert OBJ data into CSS3D transformations?
I want to convert the data in a 3D .obj file (vertices, normals, faces) to CSS3D (width, height, rotateX,Y,Z and/or similar transforms). I found a bunch of formulae and what-not, but 3D isn't my ...
4
votes
0answers
63 views
How to raycast against a physx cloth mesh?
I'm using the PhysX 3.3 SDK in a application and mostly everything is working fine. However, I'm trying to develop a feature that would allow users to click on various actors in the scene and modify ...
4
votes
1answer
276 views
How can I expose a property to Unity that should be treated like an asset path?
I want to be able to do something like this:
public FileInfo XmlBehaviourFile;
And then use the asset browser in the Unity editor to select an asset. Ideally, I would like to limit it to XML files ...
4
votes
1answer
473 views
How do I generate a mipmap for a texture loaded from a stream?
I am loading a Texture2d from a stream:
public static Texture2D GetTexture(GraphicsDevice dev, System.Drawing.Bitmap bmp) {
Texture2D texture;
using (MemoryStream s = new MemoryStream())
...
4
votes
2answers
3k views
Rendering shadow sprites in cocos2d-x
I am writing a 2D game with cocos2d-x. I want to put a "shadow" sprite on a background sprite using the equation:
MAX(0, Cd * 1 - Cs * S)
where Cd is the destination color (that is, a background ...
3
votes
1answer
166 views
+150
How does glRotate affect the axes of the global coordinate system?
I am currently playing around with 3D transformations applied on a 2D context in LWJGL, to later be implemented in my game. So I managed to set up LWJGL well enough (scaling, translating, scaling and ...
3
votes
1answer
97 views
2D Physics: What happens with torque when center of mass changes?
Novice programmer and explorer of simple 2D physics, here.
I have a simple 2D object made up of two rigid bodies connected at a fixed joint.
The two rigid objects can rotate freely about that fixed ...
3
votes
0answers
134 views
Unity3D [C#]: How do I use a custom inspector to expose an array of polymorphic objects to edit?
[EDIT: based on some feedback, I pruned the example down to the base functionality of the bug we are trying to solve. The description below remains accurate, but the repro has been shortened to:
...