Closed Thread
Page 1 of 47 1 2 3 11 ... LastLast
Results 1 to 10 of 468

Thread: [RELEASE] EGP - E2 Graphics Processor

  1. #1
    goluch
    Guest goluch's Avatar

    Exclamation [RELEASE] EGP - E2 Graphics Processor

    OK guys sorry for the wait.:p
    Here it is:
    THE EGP
    NOW IN UWSVN
    requires wiresvn r1972+ or it will not work!
    Made by Goluch & Doridian & TomyLobo.
    NONE BELIVERS OF EGP!
    Check out Maso's ZELDA: http://www.wiremod.com/forum/contrap...-game-egp.html

    NEW THREAD!
    [NEW] EGP Thread

    -----------DOCUMENTATION---------------
    EGP Documentation.

    What is EGP?
    EGP is an entity screen to be used with e2.

    What can EGP do?
    EGP can draw lines shapes and text.

    How do I wire egp?
    Simply wirelink it to an e2 chip.

    What is an element?
    An element is something your drawing like a box or a line or some text.
    Each element has an index. (Just like holos.)
    There is a server cvar that limits how many elements an egp can have.
    "sbox_maxwire_egp_elements"
    max elements default is 40.

    What elements can I draw?
    There are a few:
    Box
    Boxoutline
    Line
    Text
    Circle
    CircleSpecial.

    WTF is a circle special?
    It?s a normal circle that has had its draw information changed.
    You can change the numsides to 3 and get a triangle.
    You can set the start and end angles (between 0 - 7) to make semi circles.

    What?s the max fps of EGP?
    That depends, its actually 12 FPS.
    BUT the more elements you have waiting to draw the lower the fps.

    What?s the screen size?
    512 by 512

    THAT SUCKS?
    narp what realy sucks is LAGGGGGGGGGGGG!
    And this way we don't get lag.

    Ok so what e2 functions do I use?
    Look at the function list.

    Basics.
    When you create or edit or remove an element on the egp you?re changing the element cache.
    The egpDraw() function will then process the element cache on the screen, this is why you call this last.
    egpClear() will totally clear the cache.
    Note: egpDraw() does not clear the cache, so you only have to create an element once.
    If you create 2 elements at the same index the one you created last will be the one EGP draws.
    ALWAYS USE EGP DRAW LAST!
    Also you can write several elements to the EGP over several executions before calling egpDraw().

    ------------FUNCTION LIST----------------
    XWL:egpClear -> Clears the cache.
    XWL:egpDraw() -> Draws the cache onto the screen. (Returns 1 if successful 0 if not.)
    XWL:egpRemove(idx) -> Removes element on next draw.
    XWL:egpCanDraw() -> returns 1 if the EGP can draw on that exicution, 0 if not.)
    XWL:egpDrawMaterials() Update the screen textures only. *OFFICAL EGP SVN ONLY!
    Box -> draw a 4 sided box.
    XWL:egpBox(idx,posX,posY,SizeX,SizeY,R,G,B,A)
    XWL:egpBox(idx,vec2 pos,vec2 size,vec4 color)
    XWL:egpBox(idx,vec2 pos,vec2 size,vec color,A)
    XWL:egpAngle(idx,ang) -> Only works on box elements.

    Boxoutline - > draw a 4 sided box with an outline.
    XWL:egpBoxoutline(idx,posX,posY,SizeX,SizeY,R,G,B, A)
    XWL:egpBoxoutline(idx,vec2 pos,vec2 size,vec4 col)
    XWL:egpBoxoutline(idx,vec2 pos,vec2 size,vec col,A)

    Line -> draw a line between 2 points.
    XWL:egpLine(idx,X1,Y1,X2,Y2,R,G,B,A)
    XWL:egpLine(idx,vec2 pos1,vec2 pos2,vec4 col)
    XWL:egpLine(idx,vec2 pos,vec2 pos2,vec col,A)

    Text -> write text.
    XWL:egpText(idx,string text,vec2 pos,vec color,A)
    XWL:egpText(idx,string text,vec2 pos,vec4 color)
    XWL:egpText(idx,string text,pos1X,pos1Y,R,G,B,A)
    XWL:egpTextLayout(id,string,vec2 pos,vec2 size, vec4 color) -> SUPPORTS \n and wraps text.
    XWL:egpSetText(idx,string text)
    XWL:egpSetFont(idx,font,size)
    XWL:egpFontAlign(idx,x,y) -> veticle and horizontal alignment (0/1/2)

    Triangle -> draw a triangle made up of 3 points.
    XWL:egpTriangle(idx,X1,Y1,X2,Y2,X3,Y3,R,G,B,A)
    XWL:egpTriangle(idx,vec2 Pos1,vec2 pos2,vec2 pos3,vec color,A)
    XWL:egpTriangle(idx,vec2 Pos1,vec2 pos2,vec2 pos3,vec4 color)

    Circle -> draw a circle.
    XWL:egpCircle(idx,posX,posY,SizeX,SizeY,R,G,B,A)
    XWL:egpCircle(idx,vec2 pos,vec2 size,vec4 col)
    XWL:egpCircle(idx,vec2 pos,vec2 size,vec col,A)

    Special Circle functions:
    These will make the circles change shape rotation (etc).
    XWL:egpCircleStart(idx,N) -> set the start angle (0-7).
    XWL:egpCircleEnd(idx,N -> set the end angle (0-7).
    XWL:egpCirclePoints(idx,vec2) -> start/end angles.
    XWL:egpCirclePoints(idx,start,end) -> start/end angles.
    XWL:egpCircleSides(idx,N) -> set the amount of sides the shape has (3-64).

    Polys:
    XWL:egpPoly(idx,array) -> creates a poly based on an array of 2d and 4d vectors.
    XWL:egpPoly(idx,array,vec4 color) -> creates a poly based on a list of 2d and 4d vectors.
    XWL:egpPoly(idx,array,vec color,alpha) -> creates a poly based on a list of 2d and 4d vectors.

    Other:
    XWL:egpMaterial(idx,material)
    XWL:egpMaterialFromScreen(N,XWL/E) which takes the material from a GPULib RT screen (EGP, GPU, digital screen, console screen, text screen, oscilloscope)
    XWL:egpPos(idx,posX,posY)
    XWL:egpPos1(idx,posX,posY)
    XWL:egpPos2(idx,posX,posY)
    XWL:egpSize(idx,posX,posY)

    XWL:egpPos(idx,vec2 pos)
    XWL:egpPos1(idx,vec2 pos)
    XWL:egpPos2(idx,vec2 pos)
    XWL:egpSize(idx,vec2 pos)

    Fonts:
    coolvetica
    arial
    lucida console
    trebuchet
    courier new
    times new roman

    Spell Check {MS Word}
    READ!
    Shouldn't cause to mutch lag.
    Max FPS is 12 frames per second.
    default max elements is 40
    (use cvar "sbox_maxwire_egp_elements")

    Thanks:
    Goluch Doridian (Project leaders)
    Roflcopter/Unsmart (beta server providers)
    all beta testers.

    If you find a bug plz report it.
    SVN: EGP-SVN

    NOTE: Haters are gay!

    Examples:
    http://www.wiremod.com/forum/contrap...tml#post161259
    [egp]Minesweeper-WIP
    http://www.wiremod.com/forum/contrap...sed-mouse.html
    http://www.wiremod.com/forum/contrap...egp-radar.html





    SECTION FOR NOOBS?

    You: EGP is shit and GPU is Awsome.
    Me: FUCK YOU!
    (i have nothing against GPU just assholes)

    You: E2 GPU can be done.
    Me: Yes if you wana spend the rest of your life writing and reading cells.
    Me: seriously you need like shit load of cells.
    Me: also FUCK YOU!
    Attached Images
    Last edited by goluch; 02-13-2010 at 02:46 PM. Reason: Asking for rep is not allowed.
    Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!

  2. #2
    Lurker ryland is on a distinguished road ryland's Avatar
    Join Date
    Oct 2009
    Location
    Card bord box next to wal-mart.
    Posts
    618

    Default Re: EGP -> E2 Graphics Processor

    Cool, I like it.
    Just do you know if it will lag much?
    "I like pie"-Jat Goodwin

    <Azrael-> ryland: LOL is such a noobish thing to say.
    <ryland> LOL
    <Fox682> LOLLOL
    <Fox682> LOL
    <ryland> LOL
    Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!

  3. #3
    goluch
    Guest goluch's Avatar

    Default Re: EGP -> E2 Graphics Processor

    I'm working on a way to prevent the lag.
    But from what i have tested i can do an update every 20 intervals with no lagg.
    Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!

  4. #4
    Lurker ryland is on a distinguished road ryland's Avatar
    Join Date
    Oct 2009
    Location
    Card bord box next to wal-mart.
    Posts
    618

    Default Re: EGP -> E2 Graphics Processor

    Quote Originally Posted by goluch View Post
    I'm working on a way to prevent the lag.
    But from what i have tested i can do an update every 20 intervals with no lagg.
    Cool that would be great, also what resolution were you thinking of for the screen?
    "I like pie"-Jat Goodwin

    <Azrael-> ryland: LOL is such a noobish thing to say.
    <ryland> LOL
    <Fox682> LOLLOL
    <Fox682> LOL
    <ryland> LOL
    Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!

  5. #5
    goluch
    Guest goluch's Avatar

    Default Re: EGP -> E2 Graphics Processor

    Well i'm hopping about the same resolution / frame rate as gpu.
    Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!

  6. #6
    Lurker ryland is on a distinguished road ryland's Avatar
    Join Date
    Oct 2009
    Location
    Card bord box next to wal-mart.
    Posts
    618

    Default Re: EGP -> E2 Graphics Processor

    Quote Originally Posted by goluch View Post
    Well i'm hopping about the same resolution / frame rate as gpu.
    YES!!!
    I like this idea...
    Cookie for you.
    "I like pie"-Jat Goodwin

    <Azrael-> ryland: LOL is such a noobish thing to say.
    <ryland> LOL
    <Fox682> LOLLOL
    <Fox682> LOL
    <ryland> LOL
    Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!

  7. #7
    hat full of head

    Azrael is a glorious beacon of light Azrael is a glorious beacon of light Azrael is a glorious beacon of light Azrael is a glorious beacon of light Azrael is a glorious beacon of light Azrael's Avatar
    Join Date
    Aug 2007
    Posts
    1,947

    Default Re: EGP -> E2 Graphics Processor

    It'd be more sensible to have commands to draw on a digital screen than inventing a separate screen to do the same as the digital screen but with E2.
    Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!

  8. #8
    goluch
    Guest goluch's Avatar

    Default Re: EGP -> E2 Graphics Processor

    Oh no its not just shapes it textured shapes text maybe even 3d graphics but thats a huge MAYBEY.
    Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!

  9. #9
    hat full of head

    Azrael is a glorious beacon of light Azrael is a glorious beacon of light Azrael is a glorious beacon of light Azrael is a glorious beacon of light Azrael is a glorious beacon of light Azrael's Avatar
    Join Date
    Aug 2007
    Posts
    1,947

    Default Re: EGP -> E2 Graphics Processor

    This could all be done with a digital screen and an E2 (or maybe even a zCPU for the more adventurous) acting as a graphics driver. No need for a separate entity.
    Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!

  10. #10
    No u

    Divran is a jewel in the rough Divran is a jewel in the rough Divran is a jewel in the rough Divran is a jewel in the rough Divran's Avatar
    Join Date
    Jul 2008
    Location
    Sweden
    Posts
    2,455

    Default Re: EGP -> E2 Graphics Processor

    Quote Originally Posted by Azrael View Post
    This could all be done with a digital screen and an E2 (or maybe even a zCPU for the more adventurous) acting as a graphics driver. No need for a separate entity.
    Mind explaining how?

    Hm or maybe someone on my friends list knows
    PewPew (New GCombat) | SVN Tutorial | EGP v3
    MY SVN LINK:
    Code:
    http://divranspack.googlecode.com/svn/trunk/%20divranspack/
    


    Thanks for clicking, everyone!
    http://www.minerwars.com/?aid=927
    But if I get even more clicks, I get the full game, so keep at it!
    Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!

Closed Thread
Page 1 of 47 1 2 3 11 ... LastLast

LinkBacks (?)

  1. 02-20-2010, 12:01 PM
  2. 02-14-2010, 01:19 PM
  3. 02-02-2010, 10:57 AM
  4. 01-29-2010, 12:46 PM
  5. 01-29-2010, 03:19 AM
  6. 01-27-2010, 12:17 PM

Similar Threads

  1. [Release] Balls of Steel (Re-release)
    By Moglizorz in forum Finished contraptions
    Replies: 93
    Last Post: 3 Minutes Ago, 01:37 PM
  2. Graphics bug
    By Folharini in forum Bug Reports
    Replies: 17
    Last Post: 04-02-2009, 01:34 PM
  3. Central Processor Unit
    By Black Phoenix in forum Developer's Showcase
    Replies: 74
    Last Post: 12-30-2008, 02:44 AM
  4. i81 - processor made in pure wires. Building schemes inside!
    By Black Phoenix in forum Finished contraptions
    Replies: 37
    Last Post: 04-12-2008, 11:55 AM
  5. Graphics tablet
    By Mitchell612 in forum Wiremod Tutorials
    Replies: 3
    Last Post: 06-24-2007, 10:48 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
proceed-collector
proceed-collector
proceed-collector
proceed-collector
linguistic-parrots
linguistic-parrots
linguistic-parrots
linguistic-parrots