-
Posts
1,458 -
Joined
-
Last visited
Content Type
Profiles
News Articles
Tutorials
Forums
Downloads
Posts posted by Xycaleth
-
-
I don't recall the in-game water having any kind of "fog"? As far as I remember, the blue tint you get from going into water is literally a blue transparent square drawn on top of the screen by the cgame mod.
For a small progress update, I'm currently looking at optimizing what gets drawn. By default, everything that resides within active vis nodes (i.e. areas which the player can see from the node they are currently in) is drawn. However, this means that some objects are drawn unnecessarily even if they cannot see them from their current location and the direction they are facing. To improve this, I can determine which objects are actually visible on the player's screen and then just not draw them. Only drawing things which the player can see should give a nice performance boost on large and detailed maps
-
What graphics card do you have?
-
Woot, luckily it was just a one line fix
https://github.com/JACoders/OpenJK/commit/7289d015ca1cdb22c0660fcb6eb52c21271be23a
I'll try and upload the latest rend2 DLL for people to try out later today
-
-
Can you please test out rend2 and check to see if you have random black triangles on player models?
If you don't get them, then it is an NVidia issue. Is there a way I can help you debug @@Xycaleth?
If we're online at the same time, I can walk you through some changes to the shader to get a better of what's happening. What time are you generally online?
-
I'm thinking the issue people are having with random black triangles is only reproducible with Nvidia cards. I've not heard anyone report this when they are using an AMD card unfortunately this makes it very difficult for me to debug the issue...
-
-
something I noticed : are damage marks on glm meshes broken ? I shot it and then it had random white rectangles drawn all over it, not even in the location the shot hit it
Yeah, I haven't gotten around to adding that yet It's on my todo list.
-
I'm going to hazard a guess that you're trying to use it with SP. It currently only works with MP.
-
The DLL44 looks quite shiny. I expect it's not meant to be that shiny
But soon after I toned the values down a bit (probably not correct to do this, but as a quick hack). I expect it's because Surface Designer (I think that's what @@AshuraDX used for the textures?) uses a different lighting model from rend2...
So there are some extra changes I can make so it looks more correct, but it would make existing JKA assets look wrong. I need a way to make both work...
-
So you want a fix without changing anything? You do realise how ridiculous a request that is, right?
-
@@AshuraDX Yep, white is glossy.
-
Thanks for reporting the problem and for finding out what's causing the crash this sounds like something easy to fix so I may take a look at this in the next few days
Cerez likes this -
Here's an example of a shader which uses diffuse, normal, specular and gloss:
textures/rend2/example { { stage diffuseMap map textures/rend2/example_d } { stage normalMap map textures/rend2/example_n } { stage specularMap map textures/rend2/example_s // This actually holds both specular and gloss (in the alpha channel) } }
I can upload example textures as well when I get home.
I really want to condense this down to something more concise though. Something like this perhaps:
textures/rend2/example { diffuseMap textures/rend2/example_d normalMap textures/rend2/example_n specularMap textures/rend2/example_s }
Scerendo likes this -
At the moment I'm just going around and fixing minor things up. It's kind of disappointing that nobody (at least not that I've seen) has created any content for ioq3's rend2 so I'll take the leap of faith and say it's "usable" and that you can start producing rend2 content.
I'm still not sure how backwards compatibility will work but we'll see
Archangel35757 and Tempust85 like this -
The lighting will look better in rend2 because it's calculated on a per pixel basis instead of a per vertex basis as in the default renderer. The point of the screenshot was to show I had fixed a bug where some triangles on Luke's face weren't drawn properly!Is that new shadow?
@@AshuraDX if you could do that I'd very much appreciate it! Thanks
-
So this is what I can manage to do for Kyle's saber with my poor programmer art. Left is my re-shadered version and retextured version, right is vanilla shader.
If you're interested in trying it out, here's the latest rend2 DLL:
https://dl.dropboxusercontent.com/u/874909/rd-rend2_x86.zip
Make sure to grab latest OpenJK version as well:
And also here's the test map I'm using (minus the sabers):
https://dl.dropboxusercontent.com/u/874909/jka/rend2_test01.pk3
-
It could also be something I've changed in the specular code. I've removed the different specular algorithms and am settling on only one. I think r_specularMapping 3 in ioq3 corresponds to the specular mapping used in our rend2.
Btw, here's the test map that I used in the screenshot:
https://dl.dropboxusercontent.com/u/874909/jka/rend2_test01.pk3
I intend to update this test map and make new test maps as a learning resource.
Archangel35757 likes this -
Found the problem with cubemaps, so I can show what the map should look like
This shows what kind of effect you get with differing specularity and glossiness.
And then a close up from max gloss/reflectance, with glossiness decreasing as you go from left to right.
There's a lot to be said about this which I'll try and post later, but for now here's some pretty pictures
BONUS SCREENSHOT! So the only thing I've changed in this screenshot is the sky shader. I've not recompiled the map
And for those curious, all the spheres have shaders that look like this:
models/map_objects/rend2/sphere_100_100 { { map $whiteimage rgbGen lightingDiffuse specularReflectance 1.0 gloss 1.0 } }
Mark Lubbers, Bek, Archangel35757 and 5 others like this -
Messing around with varying the specular and gloss values! The black spheres have maximum gloss and specular - they should be full mirrors but they're not for some reason so I'm debugging that. Going left, the specular is decreasing so you see the specular lobe expand out until it's no longer visible. Going away from the camera, the gloss is increasing, so reflections should become clearer (but cubemaps aren't working )
Tempust85, Archangel35757, Lancelot and 3 others like this -
Look how happy Luke looks now!
minilogoguy18, Boothand, Circa and 7 others like this -
How are you trying to spawn the vehicle? It should be "/npc spawn vehicle swoop_mp2"
Cerez likes this -
Personally I would have advised not to use rend2 code as-is. It performs really badly as I'm sure you're currently experiencing Especially on any map which does something more than just a few walls and a floor/ceiling.
-
I'm interested in why everyone wants a mechanical keyboard. I always thought that was more useful for people who type quite a lot (coding for example) rather than just being an all round good thing.
rd-rend2 (old thread)
in OpenJK
Posted
There's still no getting rid of the blue tint though