News:

One Minute Game Review by The Happy Friar: https://ugetube.com/@OneMinteGameReviews
Also on Rumble: https://rumble.com/c/c-1115371

idTech 4 (aka Doom 3 tech) Discord Server! https://discord.gg/9wtCGHa

Main Menu

Why <some things> are <going wrong>

Started by bitterman, October 19, 2016, 11:52:10 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

bitterman

Thanks for sharing. I've got a few fresh ideas.

I think about both methods (big plants via models and planes & small plants (like grass) via particles).

Particles, which are constantly oriented to the player, creating a feeling of light dizziness (vertigo).




argoon

#16
I used the "deform sprite" material keyword to make them always look at the player, it worked but it automatically forced the material to no shadows and no light interaction, because i wanted the "always look at" functionality but also be able to use the material with normal maps and stuff, i removed that keyword and code my own system, only using doom script. :)

In the end i used a no light interaction material for the grass and no shadows but it was a nice lesson on idtech 4 scripting. :P

This is the small code doing the magic, perhaps there's a better way but this works and for now that is what matters.
But anyone is free to come with a better way. :)

player_angles = lod_player.getViewAngles();
player_angles_x = 0;
player_angles_z = 0;
player_angles_y = player_angles_y + 90;
lod1.setAngles( player_angles );