-
t0neg0d replied to the forum topic Help with shader… in the group
Troubleshooting – Graphics 3 hours, 16 minutes ago@pspeed I meant storage qualifiers… or course.
Storage Qualifiers
Variable declarations may have at most one storage qualifier specified in front of the type. These are
summarized as
Storage Qualifier […] -
t0neg0d replied to the forum topic Help with shader… in the group
Troubleshooting – Graphics 3 hours, 36 minutes ago@pspeed Oh… sorry.
I am updating the shader I am using to move clouds. At the moment, I determine the offset from the original clamp in the update loop and pass it in to move the texture. However, it seems […]
-
pspeed replied to the forum topic text background in the group
Troubleshooting – Graphics 3 hours, 47 minutes agoWhich search box did you use? The one at the very top is nearly useless. The one that says ”Custom Google Search” is the best one… that’s the one I used.
-
pspeed replied to the forum topic Help with shader… in the group
Troubleshooting – Graphics 3 hours, 57 minutes agoYou can’t, really. Not without knowing the previous time and direction.
What I meant by “what are you trying to do?” is what overall effect are you trying to achieve… not the shader specific stuff. What […]
-
phantomliger11 replied to the forum topic text background in the group
Troubleshooting – Graphics 4 hours agoi did the same and it didnt give me anything…o well
-
t0neg0d replied to the forum topic Help with shader… in the group
Troubleshooting – Graphics 5 hours, 3 minutes ago@pspeed I am starting to think this headache I have is making me temporarily retarded.
Basically what I would like to do is either:
1. get texCoord1 from the previous rendered frame.
OR
2. get texCoord1 […] -
t0neg0d replied to the forum topic Help with shader… in the group
Troubleshooting – Graphics 5 hours, 8 minutes ago@pspeed well… bad choice of words on reseting it to 0… cycle it I mean.
-
t0neg0d replied to the forum topic Help with shader… in the group
Troubleshooting – Graphics 5 hours, 11 minutes agoJust switch direction from the current point.
And… very funny, I was just about to post that g_Time was the whole reason it was working in the first place… but you beat me to it.
Soo… how do I use in / […]
-
pspeed replied to the forum topic Help with shader… in the group
Troubleshooting – Graphics 5 hours, 37 minutes agog_Time ever increases. It is time. g_tpf (I think is what it is called) will be the time of the last frame but is useless in a shader because there is not accumulation.
Imaginge if you were running at 60 FPS […]
-
t0neg0d replied to the forum topic Help with shader… in the group
Troubleshooting – Graphics 5 hours, 42 minutes ago@pspeed I was under the assumption the g_Time was the time the shader took to render a frame (pass, whatever). Either way, I can fix that… but will it effect the issue I am seeing? I would think it would […]
-
pspeed replied to the forum topic Help with shader… in the group
Troubleshooting – Graphics 5 hours, 48 minutes ago@pspeed said:
And by the way… if you have wrap mode on for your texture then you shouldn’t need to clamp/mod at all.And actually, that’s the only way that you’ll get right answers anyway. Otherwise, […]
-
pspeed replied to the forum topic Help with shader… in the group
Troubleshooting – Graphics 5 hours, 51 minutes agoAnd by the way… if you have wrap mode on for your texture then you shouldn’t need to clamp/mod at all.
-
pspeed replied to the forum topic Help with shader… in the group
Troubleshooting – Graphics 5 hours, 52 minutes ago@t0neg0d said:
the checks right below the first two lines cycle the xInc/yInc to stay between 0 and 1. Since the texture is tiled, it is a very smooth transition as it moves.No, they don’t. You think […]
-
t0neg0d replied to the forum topic Help with shader… in the group
Troubleshooting – Graphics 5 hours, 56 minutes ago@pspeed Hmmm… it doesn’t jump ever, unless I change the direction or speed. It runs nice & smooth. (constant speed)
m_Speed is a float set between .025 and .05 for my purposes (basically anything between 0 […]
-
pspeed replied to the forum topic Help with shader… in the group
Troubleshooting – Graphics 6 hours, 3 minutes agoThis is an odd little bit of code. g_Time will keep increasing so you will go way way way above 1 pretty fast depending on m_Speed… so I suspect simply subtracting 1.0 at some point in is probably not what […]
-
t0neg0d started the forum topic Help with shader… in the group
Troubleshooting – Graphics 6 hours, 9 minutes agoI’m working on a shader for rendering moving textures. The original one I set up where you simply pass in the offset, works just fine, however… when I updated it to pass in a the speed and direct… it still […]
-
pspeed replied to the forum topic sky looks distorted when using SkyFactory.createSky with spheremap in the group
Troubleshooting – Graphics 8 hours, 20 minutes agoBecause from one vertex to another, the normals are interpolated linearly. They have to be renormalized to bring the curve back.
I hope that makes sense. That is my understanding anyway.
-
sbook replied to the forum topic GPU acceleration using GLSL in the group
Troubleshooting – Graphics 8 hours, 44 minutes agoI started with this little example a while back.. works perfectly and should get you on your way http://lwjgl.org/wiki/index.php?title=Sum_Example
-
nihal replied to the forum topic GPU acceleration using GLSL in the group
Troubleshooting – Graphics 9 hours, 1 minute agoThank you guys. I will have a look at the OpenCL functionality in LWJGL next time I have some spare time.
Cheers!
-
normen replied to the forum topic GPU acceleration using GLSL in the group
Troubleshooting – Graphics 9 hours, 5 minutes agoWell, if its really like “I do all this stuff for the visuals in my shader anyway and so I also compute this other thing that depends on a lot of the made computations” then simply using some shader variable […]
- Load More
