Search found 11 matches

by jfisher446
Thu Mar 24, 2011 11:37 am
Forum: Beginners Help
Topic: What's this? .Pos.Y += (up) ? step : -step;
Replies: 5
Views: 446

Wow, thanks guys. Never would have thought to look up ternary operations and probably a longer shot searching wikipedia for '?'... I appreciate the help. And thanks Brainsaw for the tip, I can see the usefulness
by jfisher446
Thu Mar 24, 2011 10:03 am
Forum: Beginners Help
Topic: What's this? .Pos.Y += (up) ? step : -step;
Replies: 5
Views: 446

What's this? .Pos.Y += (up) ? step : -step;

...[index].Pos.Y += (up) ? step : -step; General question here. I have NO idea how I'd begin to look this up so if someone could explain the (up), ?, and : portions of this that would be great. up is a bool that's passed in, but why's it in () and how's it used to perform what seems like a math calc...
by jfisher446
Tue Mar 22, 2011 6:34 pm
Forum: Code Snippets
Topic: terrain height painting
Replies: 28
Views: 20480

Perfect. Thanks nespa. I had just figured out that I could make a const ISceneNode* outNode. but I was just leaving it hanging there without setting it to terrain. While it worked, im sure it wasn't right.
by jfisher446
Tue Mar 22, 2011 6:01 pm
Forum: Code Snippets
Topic: terrain height painting
Replies: 28
Views: 20480

Can't seem to get this line of the code from the first post working. Looks like the engine has changed: if (smgr->getSceneCollisionManager()->getCollisionPoint(ray, terrainSelector, pos, Tri)) How could I modify it to work correctly? It now needs 5 params, the 5th being an outNode and I cant pass th...
by jfisher446
Tue Mar 22, 2011 3:18 am
Forum: Beginners Help
Topic: How to edit mesh vertices?
Replies: 7
Views: 1357

Awesome, good info. So am I right in saying that all I really need to create this mesh is a heightmap which contains my vertices, a meshbuffer that will hold them, then a mesh to load the meshbuffer to? It's still the whole concept that gets me, I want to make sure I have the basics down.
by jfisher446
Tue Mar 22, 2011 1:10 am
Forum: Beginners Help
Topic: How to edit mesh vertices?
Replies: 7
Views: 1357

I think I've got it. I've been thinking of heightmaps as files, not as a collection of coordinates. I'll work with it and see what I can do.
by jfisher446
Mon Mar 21, 2011 8:44 pm
Forum: Beginners Help
Topic: How to edit mesh vertices?
Replies: 7
Views: 1357

Ok reading over that, sounds like he was almost in the same predicament as I am. The difference though is that I wish not to use a heightmap. I was editing the post above when you posted your last response, but now, how does one go about skipping the heightmap portion to great the geometry of the me...
by jfisher446
Mon Mar 21, 2011 8:13 pm
Forum: Beginners Help
Topic: How to edit mesh vertices?
Replies: 7
Views: 1357

I've looked at and extracted a lot of things from these two tutorials, the thing that I either can't figure out or is missing is the editing of a vertex during runtime. What function is it? EDIT: Ok so to elaborate a little more. This is the impression that I'm under: I need a mesh and a meshbuffer....
by jfisher446
Mon Mar 21, 2011 10:03 am
Forum: Beginners Help
Topic: How to edit mesh vertices?
Replies: 7
Views: 1357

How to edit mesh vertices?

Hey guys, just looking for some guidance here. In short I'm doing like a terrain editor. I want a plane and I want to be able to manipulate the vertices in it. I don't wish for anyone to do it for me, just some direction. The different mesh types have confused me thus far. So: 1. What is it that I n...
by jfisher446
Mon Mar 21, 2011 4:30 am
Forum: Code Snippets
Topic: (C++) RTSCamera
Replies: 39
Views: 32553

Haven't had a chance to look at it much, but it may be helpful to others searching to post your edge scrolling findings and solution? For anyone else wondering: The following section of RTSCamera::animate() is responsible for edge scrolling, either remove this section or add a condition to allow it ...
by jfisher446
Mon Mar 14, 2011 10:59 am
Forum: Beginners Help
Topic: Terrain placement ?'s
Replies: 2
Views: 298

Terrain placement ?'s

So I came across Irrlicht 12 hours ago and have been non-stop since. It seems to be exactly everything I've been looking for to get started...however, there's one issue. I'm placing terrain to get a feel of what I can do and what I'm shooting for is a Simcity-ish sort of look. Turns out I'm just not...