Joh Posted May 12, 2010 Share Posted May 12, 2010 I am facing a little problem, i have done some test but i have no other idea now.. I need to create a laser beam like this one: http://www.infinity-universe.com/Infinity/index.php?option=com_zoom&Itemid=90&catid=6&PageNo=2 I tested with 4 planes and a texture with an alpha blending and bloom, the result is nice but only when the plane aren't facing the camera, obviously when it come directly in your face you will see the plane issue (no deep on plain). I tested with mesh too, but i am unable to do it looks as i want.. Any suggestions guy? Quote Intel Corei7-6700, NVIDIA GeForce GTX 980, 32GB DDR4, W-10. Link to comment Share on other sites More sharing options...
Canardia Posted May 12, 2010 Share Posted May 12, 2010 I would draw multiple OpenGL 3D lines with different brightness, length, position, and alpha transparency. Quote ■ Ryzen 9 ■ RX 6800M ■ 16GB ■ XF8 ■ Windows 11 ■ ■ Ultra ■ LE 2.5 ■ 3DWS 5.6 ■ Reaper ■ C/C++ ■ C# ■ Fortran 2008 ■ Story ■ ■ Homepage: https://canardia.com ■ Link to comment Share on other sites More sharing options...
Joh Posted May 12, 2010 Author Share Posted May 12, 2010 This can be a nice effect, but i assume there still the same problem when the laser face the camera.. The only way to "fix" this problem is to fully fill the deep. Quote Intel Corei7-6700, NVIDIA GeForce GTX 980, 32GB DDR4, W-10. Link to comment Share on other sites More sharing options...
Canardia Posted May 12, 2010 Share Posted May 12, 2010 If you don't draw the lines all parallel, but twisted to the position of the next line, you would get a nice circle when facing the camera. Quote ■ Ryzen 9 ■ RX 6800M ■ 16GB ■ XF8 ■ Windows 11 ■ ■ Ultra ■ LE 2.5 ■ 3DWS 5.6 ■ Reaper ■ C/C++ ■ C# ■ Fortran 2008 ■ Story ■ ■ Homepage: https://canardia.com ■ Link to comment Share on other sites More sharing options...
Joh Posted May 12, 2010 Author Share Posted May 12, 2010 Yeah i understood after answering. This can be a solution, need only to test how speed it is. Quote Intel Corei7-6700, NVIDIA GeForce GTX 980, 32GB DDR4, W-10. Link to comment Share on other sites More sharing options...
Canardia Posted May 12, 2010 Share Posted May 12, 2010 You can draw 500000 lines in immediate mode with decent FPS on a GeForce 8800GTS. Quote ■ Ryzen 9 ■ RX 6800M ■ 16GB ■ XF8 ■ Windows 11 ■ ■ Ultra ■ LE 2.5 ■ 3DWS 5.6 ■ Reaper ■ C/C++ ■ C# ■ Fortran 2008 ■ Story ■ ■ Homepage: https://canardia.com ■ Link to comment Share on other sites More sharing options...
Sooshi Posted May 13, 2010 Share Posted May 13, 2010 You can draw 500000 lines in immediate mode with decent FPS on a GeForce 8800GTS. wow really? Quote Working on a major RPG project.......will showcase soon. www.kevintillman1.wix.com/tillmansart Link to comment Share on other sites More sharing options...
Joh Posted May 13, 2010 Author Share Posted May 13, 2010 I was to tired to try it yesterday i'll let you know something.. Quote Intel Corei7-6700, NVIDIA GeForce GTX 980, 32GB DDR4, W-10. Link to comment Share on other sites More sharing options...
Joh Posted May 14, 2010 Author Share Posted May 14, 2010 Tested: Effect good, but i am pretty sure with some work it can be awesome. Speed, well i am happy with it but anyway check your self : 10000 lines per loop and no any fps lost on my actual gameplay. Now i know i can't insert my self during the render, so is there a way to keep in consideration other models? I mean obviously drawing the line as last they will ever stay on front of models, because they are not included on leadwerks render. Quote Intel Corei7-6700, NVIDIA GeForce GTX 980, 32GB DDR4, W-10. Link to comment Share on other sites More sharing options...
Canardia Posted May 14, 2010 Share Posted May 14, 2010 You need to disable all post-processing effects to make the 3D lines work correctly in 3D. Quote ■ Ryzen 9 ■ RX 6800M ■ 16GB ■ XF8 ■ Windows 11 ■ ■ Ultra ■ LE 2.5 ■ 3DWS 5.6 ■ Reaper ■ C/C++ ■ C# ■ Fortran 2008 ■ Story ■ ■ Homepage: https://canardia.com ■ Link to comment Share on other sites More sharing options...
Joh Posted May 14, 2010 Author Share Posted May 14, 2010 You need to disable all post-processing effects to make the 3D lines work correctly in 3D. mmm This is bad.. Almost any things on leadwerks work with post-processing, doing this i lose too many. Quote Intel Corei7-6700, NVIDIA GeForce GTX 980, 32GB DDR4, W-10. Link to comment Share on other sites More sharing options...
Canardia Posted May 14, 2010 Share Posted May 14, 2010 Josh said he will be making Framework more flexible by providing seperate functions for rendering geometry, rendering lights, rendering post-effects, etc... Then you can insert you 3D OpenGL lines before the post-effects function call. Quote ■ Ryzen 9 ■ RX 6800M ■ 16GB ■ XF8 ■ Windows 11 ■ ■ Ultra ■ LE 2.5 ■ 3DWS 5.6 ■ Reaper ■ C/C++ ■ C# ■ Fortran 2008 ■ Story ■ ■ Homepage: https://canardia.com ■ Link to comment Share on other sites More sharing options...
Joh Posted May 14, 2010 Author Share Posted May 14, 2010 Josh said he will be making Framework more flexible by providing seperate functions for rendering geometry, rendering lights, rendereing post-effects, etc...Then you can insert you 3D OpenGL lines before the post-effects function call. If he does it on leadwerks 3.0, it will be unusefull for me. Also my publisher need to test the game on October, and the release date is on first of december, i know it's enough time, but if he manage to do it later on i'll need to research more. Quote Intel Corei7-6700, NVIDIA GeForce GTX 980, 32GB DDR4, W-10. Link to comment Share on other sites More sharing options...
Foolish Posted May 15, 2010 Share Posted May 15, 2010 Joh, So what approach did you decide on for your lasers? Quote Windows XP Dual Core 2.66 Dual GeForce 7900 GTS in SLI (Yes, I know they are old.) Blitzmax with BlIDE Link to comment Share on other sites More sharing options...
AndyGFX Posted May 15, 2010 Share Posted May 15, 2010 @Joh: When you need BEAM type sprite, best way is write "Axis Aligned Billboard" i have this code writed in Pascal, BMX and for Java, when you want I send you my code, or from this link AAB is in C++. EDIT: Why wait, when you need it, here are my codes: Axis Aligned Billboard (Pascal, Bmx, Java )) 1 Quote [HW] C2D Q6600, 4GB RAM, NV8800GTX, Vista Ultimate x64 [sW] Blide Plus, BlitzMax, Delphi, C++, 3DWS 5.53, Leadwerks 2.xx Link to comment Share on other sites More sharing options...
Joh Posted May 17, 2010 Author Share Posted May 17, 2010 Hi, sorry guys i am was on holiday (thinking on it i am always on holiday in week-end..) Joh,So what approach did you decide on for your lasers? Well for the moment my approach is 4 planes bloomed with a different rotation angle when is aiming the player so you will always be able to see it, but this is only a placeholder. When you need BEAM type sprite, best way is write "Axis Aligned Billboard" That's seem good enough, i haven't think about it, so practically you would use different 4-3 different image aligned in different axis? Quite nice idea! Unfortunately i still haven't found a 2d artist for my project and i have such problem like that some time Thanks guys, i'll try this. Quote Intel Corei7-6700, NVIDIA GeForce GTX 980, 32GB DDR4, W-10. Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.