• Welcome to Dark Bit Factory & Gravity.
 

What are you working on at the moment?

Started by Shockwave, October 28, 2006

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

DrewPee

I do hope you are not being naughty Shockwave!! lol!!!  >:D

Drew
DrewPee
aka Falcon of The Lost Boyz (Amiga)
Ex-Amiga Coder and Graphic Designer
Administrator of > www.retrocomputermuseum.co.uk

Shockwave

A little bit of controversy isn't a bad thing ;)
Shockwave ^ Codigos
Challenge Trophies Won:

.:] Druid [:.

very nice indeed.  Can't wait to see it running :D
[sheep]: im sure he wants to goto prison.. they didnt get him last time.. he was promised a big cock up his arse.. and no doubt looking forward to it.. lets hope he gets his wish this year.

Shockwave

Nuke has a version of it, he said it was running ok but a bit choppy on his computer so I've been optimising it.
I'll share a little optim I've worked on for it (excuse the variable names);


SUB DETECT_EDGES()
    'This sub detects where the edges of the logo are so that we don't have to loop
    'so much when we draw the logo. this optimisation has saved loads of scan time :-)
    '
    DIM FUCK AS INTEGER
    DIM INNER AS INTEGER
    DIM OUTER AS INTEGER
    DIM CTEMPLATE AS INTEGER
    DIM FIXX AS INTEGER
    DIM TWAT AS INTEGER
    CTEMPLATE=LOGO (1,1)
    FOR FUCK=0 TO 479
        FOR INNER=1 TO 319
            IF LOGO(INNER,FUCK)<>CTEMPLATE THEN
                LSTART(FUCK)=INNER
                INNER=320
            END IF
        NEXT
        OUTER=319
        FOR INNER=1 TO 319
            IF LOGO(OUTER,FUCK)<>CTEMPLATE THEN
                LEND(FUCK)=OUTER
                INNER=320
            END IF
            OUTER=OUTER-1
        NEXT       
    NEXT
END SUB


What this does is to scan the logo to see where the logo starts and where it ends, these locations are stored.. Before I did this I was rasterising a solid block and checking each pixel in the block for the mask colour.. That made for a lot of if statements, I looked at the logo and thought that I was checking a lot of empty space and wanted to use this technique to eliminate that, so essentially it has enabled me to stencil the logo and render it pixelwise a lot less expensively.
Shockwave ^ Codigos
Challenge Trophies Won:

Hotshot

That nice picture shocky.....adding some snowflake and father xmas on bobsleigh floating( then do scaleimage that come near you and move away the screen! Cool effect!)

just making Suggesting(mean making new idea for ya)

cheers

p.s. I really need sort my awful english out even thought I am sure people out there understand it and if u dont understand....pls ask :)

taj

OK I think I proved the 1k curved surface thing.
Thanks to rbrazs VC++ framework, I'm now working on a system to get D3D and OGL working hand in hand. My intention is to use advanced features in D3DX (maths, curves, meshes, normal calculations, subdivision, precomputer radiance transfer etc) and yet render with Opengl. Its a bit tricky but nothing too difficult.

So far I have achieved:
d3d +OGL initialised correctly in <500 bytes
a dx torus model with only 4 sides, subdivided and rendered using opengl in <1k.
Next step, my own 3ds model, compressed and squashed in dirty ways loaded into dx, subdivided and drawn with OGL.
- I'm praying I can be smart enough to get it into 1k but...well there isnt much room.

No piccies worth seeing yet though.

Challenge Trophies Won:

Rbz

Sounds cool taj  8)

I've one idea for a new 1kb, not sure if it will compress to 1kb, but I'll try to do it, just need some free time ...

Challenge Trophies Won:

Jim

I'm working on getting to xmas without being fired.

Jim
Challenge Trophies Won:

taj

#48
Currently I'm working on low byte count shaders to do surface effects. Believe it or not this is my first ever bump mapping attempt below. The cool things about this simple technique is:
1. Its about 20-30 bytes
2. There are no textures at all so no need to waste bytes defining them
3. There are no binormals or tangents to define, saving huge fuss with extensions in OGL and code space

I simply apply 3d (x,y,z) equations to the normal of a sphere. So this is just a sphere with "bent" normals. I am very happy with the result and pretty convinced this is a way forward for size coding.

I've added an exe but as usual its shader based so needs a modern graphics card so its unlikely to run many places.
Challenge Trophies Won:

Stonemonkey

Very nice taj, runs a little too quick here but still cool.

taj

Yeah shaders vary a lot in speed..I'll fix up a timed version, maybe tonight.
Ive got a more metallic look plus multitextured bump maps so I'll post it later.
Challenge Trophies Won:

Clyde

Still Putting The IT Into Gravy
If Only I Knew Then What I Know Now.


Challenge Trophies Won:

Ghost^BHT


benny!

[ mycroBLOG - POUET :: whatever keeps us longing - for another breath of air - is getting rare ]

Challenge Trophies Won:

lilw4t3rdr0p

Nice Taj...... DAMN I LOVE THIS SMILIE  :updance:

MrP

Nice work again Taj.... I dont have any problems with your stuff, except that it screws with my desktop res on the way out.... ie it doesn't return me back to my original desktop res.... Great work though

Shockwave

Nice bump mapping Taj :) Looks fantastic even though I won't be able to run it! At least I can see the screenies!
Shockwave ^ Codigos
Challenge Trophies Won:

Rbz

@taj: Works perfectly here, wonderful effect, congrats  :clap:
Challenge Trophies Won:

taj

Thanks all for the support, I thought I was going nuts at the weekend as I couldnt get this to work. Got more and more depressed and then suddenly up it popped about 2am last night. I must admit, even Im surprised that it looks *that* good.
Challenge Trophies Won:

taj

Quote from: MrP on December 18, 2006
Nice work again Taj.... I dont have any problems with your stuff, except that it screws with my desktop res on the way out.... ie it doesn't return me back to my original desktop res.... Great work though

Do you use dual monitor or something? Ive had trouble with that in the past.
Challenge Trophies Won: