FAQ  •  Register  •  Login

Makaqu

Moderator: Inside3D Admins

<<

mh

User avatar

Posts: 2172

Joined: Sat Jan 12, 2008 1:38 am

Post Mon Apr 16, 2012 6:59 am

Re: Makaqu

For entities and textures I generally hack them in at load time, then #if 0 them out when done.

end.bsp has multilayered liquid; fall into the first pool and look up at the teleport you came from. Also e4m7 for liquids within liquids.
Like the fifth day of playing 24-hour Scrabble when you don't want to use any letters because each one means a world to you because you're so deranged.
<<

Spirit

Posts: 867

Joined: Sat Nov 20, 2004 9:00 pm

Post Mon Apr 16, 2012 11:32 am

Re: Makaqu

My http://www.quaddicted.com/files/engines ... spirit.zip testmap has a translucent brush. I hope I included the source. Would be great if those other test cases would simply be added to the map.
If I did not include a license, I hereby declare it public domain or WTFPL whatever suits you.
Improve Quaddicted, send me a pull request: https://github.com/SpiritQuaddicted/Quaddicted-reviews
<<

mh

User avatar

Posts: 2172

Joined: Sat Jan 12, 2008 1:38 am

Post Mon Apr 16, 2012 3:43 pm

Re: Makaqu

Spirit wrote:My http://www.quaddicted.com/files/engines ... spirit.zip testmap has a translucent brush. I hope I included the source. Would be great if those other test cases would simply be added to the map.
If I did not include a license, I hereby declare it public domain or WTFPL whatever suits you.

This is a great map for testing the basics, as well as making sure that you're doing this stuff in a way that's going to be compatible with other engines. Highly recommended.

Another favourite I use on occasion is LordHavoc's entitytest (it's on his downloads page) - there's nothing much special about it, but it does give your MDL drawing code a light-to-moderate workout and does include a moving sky brush, which tests how compatible you are with one example of the slightly weirder stuff.
Like the fifth day of playing 24-hour Scrabble when you don't want to use any letters because each one means a world to you because you're so deranged.
<<

Spirit

Posts: 867

Joined: Sat Nov 20, 2004 9:00 pm

Post Mon Apr 16, 2012 4:23 pm

Re: Makaqu

Tried entitytest in some engines including quake.exe and winquake.exe, no problems whatsoever. Does it only get freaky if skyboxes are involved?
Improve Quaddicted, send me a pull request: https://github.com/SpiritQuaddicted/Quaddicted-reviews
<<

mh

User avatar

Posts: 2172

Joined: Sat Jan 12, 2008 1:38 am

Post Mon Apr 16, 2012 5:02 pm

Re: Makaqu

The standard id engines should work fine. Where an engine might go nuts is if it doesn't properly handle sky surfaces on brush models (skyboxes would be a good example here).
Like the fifth day of playing 24-hour Scrabble when you don't want to use any letters because each one means a world to you because you're so deranged.
<<

qbism

User avatar

Posts: 811

Joined: Thu Nov 04, 2004 5:51 am

Post Tue Apr 17, 2012 12:48 am

Re: Makaqu

Try back2forwards. Multiple layers of transparency.
<<

mankrip

User avatar

Posts: 509

Joined: Fri Jul 04, 2008 3:02 am

Post Tue Apr 17, 2012 10:41 pm

Re: Makaqu

:) Thanks. Both entitytest and enginetest-spirit crashed my engine, but back2forwards worked.

backwforwards uses a BSP entity for the translucent floor and another for the translucent windows of the ship right below it, and thanks to that I found out that translucent BSP entities are affected by Makaqu's clipping bug also.
Thinking with slipgates.
=-=-=-=-=-=-=-=-=-=
Makaqu engine blog / website.
<<

Revanic45

Posts: 7

Joined: Sun Nov 21, 2010 1:41 am

Post Fri Apr 27, 2012 4:58 pm

Re: Makaqu

I noticed that with the directional lighting, you did not normalize the lighting vector after getting it from the dynamic light. You MUST do this, it will make it look much better.
<<

mankrip

User avatar

Posts: 509

Joined: Fri Jul 04, 2008 3:02 am

Post Sat Apr 28, 2012 12:46 am

Re: Makaqu

Revanic45 wrote:I noticed that with the directional lighting, you did not normalize the lighting vector after getting it from the dynamic light. You MUST do this, it will make it look much better.

:D Thanks! This fixed the problem with multiple dynamic lights. I normalized it after all lights gets added.
The contrast in the shading doesn't look as extreme as before, but it does look a lot more accurate.
Thinking with slipgates.
=-=-=-=-=-=-=-=-=-=
Makaqu engine blog / website.
<<

mankrip

User avatar

Posts: 509

Joined: Fri Jul 04, 2008 3:02 am

Post Sun Jun 24, 2012 8:51 pm

Re: Makaqu

The 1.5 version is released. It only runs in windowed mode. I hated to release it with this bug, but despite that, I'm quite satisfied with it.

The particle lighting allows overbrighting, while the SPR model lighting doesn't. Maybe I'll change the particle lighting to behave like the SPR one, but opinions are welcome.
Thinking with slipgates.
=-=-=-=-=-=-=-=-=-=
Makaqu engine blog / website.
<<

qbism

User avatar

Posts: 811

Joined: Thu Nov 04, 2004 5:51 am

Post Wed Jun 27, 2012 3:06 am

Re: Makaqu

I was able to get it to run fullscreen mode. In fullscreen, FPS drops very low when the menu is down. The palette goes crazy until the next bonus or damage flash.

Transparency looks great. In back2forwards, was able to see entities and skies correctly rendered through 2 layers of glass (func_walls I think). mkqtest1 map from 1.4alpha rendered correctly, even through multiple layers of transparency.

overbright sprites could have a washed-out look. Instances like the explosion sprite.
<<

leileilol

User avatar

Posts: 2403

Joined: Fri Oct 15, 2004 3:23 am

Post Thu Jun 28, 2012 12:18 am

Re: Makaqu

qbism wrote:In fullscreen, FPS drops very low when the menu is down.

I assume DirectDraw doesn't like the menu fade effect, it's much faster in -dibonly

qbism wrote:The palette goes crazy until the next bonus or damage flash.

Windows 7 was my idea!

How could this "resolved"? Palette update per second (while not flashing) to squish the NT6 palette glitch?
<<

qbism

User avatar

Posts: 811

Joined: Thu Nov 04, 2004 5:51 am

Post Thu Jun 28, 2012 2:41 am

Re: Makaqu

leileilol wrote:I assume DirectDraw doesn't like the menu fade effect, it's much faster in -dibonly
Strange, yeah, it is much faster. But then palette mixed-up occurs on the back side instead, after closing menu.

Not sure why there's a speed difference. The fadescreen effect is applied to buffer upstream of vid blit. Could try ditching MGL for one of the MGL-less drivers posted by mh.
<<

Spike

Posts: 2084

Joined: Fri Nov 05, 2004 3:12 am

Location: UK

Post Thu Jun 28, 2012 8:40 am

Re: Makaqu

_never_ read from video memory.
if you need to read from video memory, use some other buffer somewhere (like quake's water warp buffer), a bit like you would an fbo in gl.

video memory is generally paged as uncached memory, so every single access results in stalling the cpu while waiting on the result, hence the slowness.

DIBs are blitted from system memory each time, hence why you'd want to use directdraw when you can. :P
<<

mh

User avatar

Posts: 2172

Joined: Sat Jan 12, 2008 1:38 am

Post Thu Jun 28, 2012 6:28 pm

Re: Makaqu

The MGL-less drivers are immune to both read-from-vram and palette-craziness issues as they work on a system memory buffer for most of the frame but just expand that out to a 32-bit buffer at swap time. In practice this is just as fast as working in 8-bit (owing to some loop-unrolling), and may even be faster on some systems as writes to vram work best when you can feed it a lot of data in large chucks over a short period of time.
Like the fifth day of playing 24-hour Scrabble when you don't want to use any letters because each one means a world to you because you're so deranged.
PreviousNext

Return to Engine Programming

Who is online

Users browsing this forum: Google [Bot] and 1 guest

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.
Icons provided by Aha Soft