Author Topic: RBC Mjolnir Mk2 SCP Revision  (Read 11831 times)

0 Members and 1 Guest are viewing this topic.

Offline Taristin

  • Snipes
  • 213
  • BlueScalie
    • Skelkwank Shipyards
RBC Mjolnir Mk2 SCP Revision
Quote
Originally posted by Sandwich
Will someone move half the posts in this thread to the SCP forum? I gotta run. :p


I would, but my power craze is restricted to TVWP...
Freelance Modeler | Amateur Artist

 

Offline mikhael

  • Back to skool
  • 211
  • Fnord!
    • http://www.google.com/search?q=404error.com
RBC Mjolnir Mk2 SCP Revision
Nah. None of this stuff belongs in the SCP forum. FSModding maybe, not SCP. Though its for SCP builds, its not really an SCP project.
[I am not really here. This post is entirely a figment of your imagination.]

 

Offline Krackers87

  • 158 crew
  • 29
RBC Mjolnir Mk2 SCP Revision
what modeling progy do u use mikhael?
Put this in your profile if you know someone who is fighting, has survived, or has died from an awp no scope.

just like seventies goofballs
he's waiting on last calls
well listen method man
'cause if you leave on the last line
don't leave on the ground kind
born just a little too slow

 

Offline Sandwich

  • Got Screen?
  • 213
    • Skype
    • Steam
    • Twitter
    • Brainzipper
RBC Mjolnir Mk2 SCP Revision
Quote
Originally posted by mikhael
Nah. None of this stuff belongs in the SCP forum. FSModding maybe, not SCP. Though its for SCP builds, its not really an SCP project.


So what would you call this, Matrix-esque for a blonde, a brunette, and a red-head? :wtf:

Quote
Originally posted by PhReAk
actually the code is very hacked as it is.  in a perfect world we'd do tri-strips and use index arrays (hella fast).  we actually have it kinda go off the old code and just interpret each polygon as a triangle fan.  we then stuff the verts into a giant array and send that off verts are repeated unfortunately.  as long as the number of triangles after triangulation is under 25000 or something you should be ok.  i think bob remembers all the limits

Code: [Select]

opengl_vertex_buffer *vbp=&vertex_buffers[idx];

glEnableClientState(GL_VERTEX_ARRAY);
if (vbp->vbo_vert)
{
glBindBufferARB(GL_ARRAY_BUFFER_ARB, vbp->vbo_vert);
glVertexPointer(3,GL_FLOAT,0, (void*)NULL);
}
else
{
glVertexPointer(3,GL_FLOAT,0,vbp->vertex_array);
}

glEnableClientState(GL_NORMAL_ARRAY);
if (vbp->vbo_norm)
{
glBindBufferARB(GL_ARRAY_BUFFER_ARB, vbp->vbo_norm);
glNormalPointer(GL_FLOAT,0, (void*)NULL);
}
else
{
glBindBufferARB(GL_ARRAY_BUFFER_ARB, 0);
glNormalPointer(GL_FLOAT,0,vbp->normal_array);
}

glClientActiveTextureARB(GL_TEXTURE0_ARB);
glEnableClientState(GL_TEXTURE_COORD_ARRAY);
if (vbp->vbo_tex)
{
glBindBufferARB(GL_ARRAY_BUFFER_ARB, vbp->vbo_tex);
glTexCoordPointer(2,GL_FLOAT,0,(void*)NULL);
}
else
{
glBindBufferARB(GL_ARRAY_BUFFER_ARB, 0);
glTexCoordPointer(2,GL_FLOAT,0,vbp->texcoord_array);
}

if (GLOWMAP > -1)
{
glClientActiveTextureARB(GL_TEXTURE1_ARB);
glEnableClientState(GL_TEXTURE_COORD_ARRAY);
if (vbp->vbo_tex)
{
glBindBufferARB(GL_ARRAY_BUFFER_ARB, vbp->vbo_tex);
glTexCoordPointer(2,GL_FLOAT,0,(void*)NULL);
}
else
{
glBindBufferARB(GL_ARRAY_BUFFER_ARB, 0);
glTexCoordPointer(2,GL_FLOAT,0,vbp->texcoord_array);
}
}

if ((Interp_multitex_cloakmap>0) && (max_multitex > 2))
{
glClientActiveTextureARB(GL_TEXTURE2_ARB);
glEnableClientState(GL_TEXTURE_COORD_ARRAY);
if (vbp->vbo_tex)
{
glBindBufferARB(GL_ARRAY_BUFFER_ARB, vbp->vbo_tex);
glTexCoordPointer(2,GL_FLOAT,0,(void*)NULL);
}
else
{
glBindBufferARB(GL_ARRAY_BUFFER_ARB, 0);
glTexCoordPointer(2,GL_FLOAT,0,vbp->texcoord_array);
}
}


int r,g,b,a,tmap_type;

opengl_setup_render_states(r,g,b,a,tmap_type,TMAP_FLAG_TEXTURED,0);

if (gr_screen.current_bitmap==CLOAKMAP)
{
glBlendFunc(GL_ONE,GL_ONE);
r=g=b=Interp_cloakmap_alpha;
a=255;
}

gr_tcache_set(gr_screen.current_bitmap, tmap_type, &u_scale, &v_scale, 0, gr_screen.current_bitmap_sx, gr_screen.current_bitmap_sy, 0);

glLockArraysEXT(0,vbp->n_poly*3);

glDrawArrays(GL_TRIANGLES,0,vbp->n_poly*3);

glUnlockArraysEXT();


this code may interest mik as i think he does some OGL [/size][/B]
SERIOUSLY...! | {The Sandvich Bar} - Rhino-FS2 Tutorial | CapShip Turret Upgrade | The Complete FS2 Ship List | System Background Package

"...The quintessential quality of our age is that of dreams coming true. Just think of it. For centuries we have dreamt of flying; recently we made that come true: we have always hankered for speed; now we have speeds greater than we can stand: we wanted to speak to far parts of the Earth; we can: we wanted to explore the sea bottom; we have: and so  on, and so on: and, too, we wanted the power to smash our enemies utterly; we have it. If we had truly wanted peace, we should have had that as well. But true peace has never been one of the genuine dreams - we have got little further than preaching against war in order to appease our consciences. The truly wishful dreams, the many-minded dreams are now irresistible - they become facts." - 'The Outward Urge' by John Wyndham

"The very essence of tolerance rests on the fact that we have to be intolerant of intolerance. Stretching right back to Kant, through the Frankfurt School and up to today, liberalism means that we can do anything we like as long as we don't hurt others. This means that if we are tolerant of others' intolerance - especially when that intolerance is a call for genocide - then all we are doing is allowing that intolerance to flourish, and allowing the violence that will spring from that intolerance to continue unabated." - Bren Carlill

 

Offline phreak

  • Gun Phreak
  • 211
  • -1
RBC Mjolnir Mk2 SCP Revision
its matrix-esque for a hairy arse :nervous:

*runs*
Offically approved by Ebola Virus Man :wtf:
phreakscp - gtalk
phreak317#7583 - discord

 

Offline mikhael

  • Back to skool
  • 211
  • Fnord!
    • http://www.google.com/search?q=404error.com
RBC Mjolnir Mk2 SCP Revision
Its a code snippet demonstrating some stuff using OpenGL. But its only one post, not half the thread, Sandwich. ;)

Krackers: I use Lightwave exclusively.
[I am not really here. This post is entirely a figment of your imagination.]

 

Offline Sandwich

  • Got Screen?
  • 213
    • Skype
    • Steam
    • Twitter
    • Brainzipper
RBC Mjolnir Mk2 SCP Revision
Quote
Originally posted by mikhael
Its a code snippet demonstrating some stuff using OpenGL. But its only one post, not half the thread, Sandwich. ;)

Krackers: I use Lightwave exclusively.


Oh, you wanted me to quote half the thread in my post? That can be arranged... :drevil:
SERIOUSLY...! | {The Sandvich Bar} - Rhino-FS2 Tutorial | CapShip Turret Upgrade | The Complete FS2 Ship List | System Background Package

"...The quintessential quality of our age is that of dreams coming true. Just think of it. For centuries we have dreamt of flying; recently we made that come true: we have always hankered for speed; now we have speeds greater than we can stand: we wanted to speak to far parts of the Earth; we can: we wanted to explore the sea bottom; we have: and so  on, and so on: and, too, we wanted the power to smash our enemies utterly; we have it. If we had truly wanted peace, we should have had that as well. But true peace has never been one of the genuine dreams - we have got little further than preaching against war in order to appease our consciences. The truly wishful dreams, the many-minded dreams are now irresistible - they become facts." - 'The Outward Urge' by John Wyndham

"The very essence of tolerance rests on the fact that we have to be intolerant of intolerance. Stretching right back to Kant, through the Frankfurt School and up to today, liberalism means that we can do anything we like as long as we don't hurt others. This means that if we are tolerant of others' intolerance - especially when that intolerance is a call for genocide - then all we are doing is allowing that intolerance to flourish, and allowing the violence that will spring from that intolerance to continue unabated." - Bren Carlill