Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > simple shaded / textured vector
2010-08-10 19:21
LHS

Registered: Dec 2002
Posts: 66
simple shaded / textured vector

Hi, I'm thinking how is possible to code a fast "simple shaded / textured vector" such as in Natural Wonders or http://noname.c64.org/csdb/release/?id=4613. I have some bytefields of coordinates and I can show an oldschool filled vector - and I will show the vector with shaded / simple textured sides.

Draw lines of one side into tmp gfx memory, fill (entire) by EOR, texture (entire) by AND and put (entire) on screen by ORA. Go to next side. It is slow. Or not? Is there a dodge (fake) for an optimalization?

I'm thinkink about instruction SAX (A & X), in A is the result of EOR and X contains a template of shade -> filling and texturing in one step. Next optimalization can be e.g. the vector screen size is $80*$80, but anyone (individual) of the sides don't exceed $60*$60, so that the tmp gfx screen (for EOR filling) can be smaller-faster.

Is it nonsense and the shaded vectors use another methods?
2010-08-10 20:37
Oswald

Registered: Apr 2002
Posts: 5094
if you want to eor fill the basic trick is to use 2 buffers, and mix them to the screen line by line.

buffer1:

a
a
a
a

buffer2:

b
b
b
b

screen:

a
b
a
b
a
b
2010-08-10 21:34
Skate

Registered: Jul 2003
Posts: 494
I think LHS was asking something else.

Check these topics

FASTER 3D GRAPHICS

Your favorite 3d tricks
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
Jazzcat/Onslaught
E$G/HF ⭐ 7
ΛΛdZ
iAN CooG/HVSC
Guests online: 143
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.6)
5 Edge of Disgrace  (9.6)
6 What Is The Matrix 2  (9.6)
7 The Demo Coder  (9.6)
8 Uncensored  (9.6)
9 Comaland 100%  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 No Listen  (9.6)
2 Layers  (9.6)
3 Cubic Dream  (9.6)
4 Party Elk 2  (9.6)
5 Copper Booze  (9.6)
6 Dawnfall V1.1  (9.5)
7 Rainbow Connection  (9.5)
8 Onscreen 5k  (9.5)
9 Morph  (9.5)
10 Libertongo  (9.5)
Top Groups
1 Performers  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Triad  (9.3)
5 Censor Design  (9.3)
Top Graphicians
1 Mirage  (9.8)
2 Archmage  (9.7)
3 Pal  (9.6)
4 Carrion  (9.6)
5 Sulevi  (9.6)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.046 sec.