SDS: Scratch "CGI"

SDS: Scratch "CGI"

by WONGMY

👁 375 ❤️ 16 ⭐ 12 🔄 0
Created: Oct 6, 2022 Last modified: Oct 6, 2022 Shared: Oct 6, 2022

Description

I did all the code myself, though I took a bit of inspiration from other pen-math projects. It was actually a lot more straightforward than even my last SDS project, though it may look and lag like it wasn't! If you want to read a few paragraphs on how this works, scroll down, but if you're not a nerd, then this is pretty much the end of the description for you. Forget I said you had to be a nerd, because I've already said that it's quite straightforward. Basically, it first generates the image by using math based on the current coordinates while moving to every onscreen position, then it stores all of this as list data. Storing it as list data is helpful against lag because it won't have to do all the equations again. Everything from this point on unless stated is done on the fly. The rendering job is very simple. Because the list data always gets stored in the same order, it just has to go to the next relative position and then grab the list data assigned to that specific point. What we didn't account for is the non-interpolated scaling. It's very simple, you just have to multiply each render position value by the multiplier variables. It can't really look 3D like this, but we'll tackle that later. The layering effect is REALLY simple. It just decreases the generated transparency value so that different layers come into focus. The icing on the cake is the shading effects. Attempting to look like a shadow, it shades depending on the Y and Y scaling. The shade also gets dimmer the further scaled or "rotated" it is on the X axis. I say rotated because of the pseudo-3D effect. The "Pattern Multiplier" feature is still pretty experimental. The feature is actually changing the formula for the equation that makes the effect. This means that it has to be re-generated so there's a few frames that nothing renders. Actually, forget what I said a few paragraphs ago, you're a nerd at this point. This is my first official attempt at a pen project, but I'm probably not going back to "CGI". I may try raycasting someday, though.

Instructions

• USE TURBOWARP FOR ALMOST FULL SPEED: • https://turbowarp.org/741648190?hqpen You're probably wondering why I've put airquotes around every instance of "CGI". Well, that's because it's not what comes to mind when most people think of "CGI", though it's still an image generated by a computer so it counts. After clicking the flag it will show you a few demoes of the basic "CGI" technology that I've made. By that, I mean it will first show you some non-interpolated scaling by scaling the image up one axis at a time, then show you a 3D-like effect with the image spinning around using that same scaling technology. Then, it will show you a bit of the inner layering, and what happens if layers are added or removed. After that, it shows you all the values and you can experiment! Like all the other projects in my SDS series (well, one) this was made in under 24 hours just as a side project, so it still may have bugs that I won't come back to fix. On the WONGMY news other than that, I'm having some troubles making Billding Site 2 enemies function, so the game may still take a while. On the flip side, I'll be accepting any concept art for enemies or bosses that you link to me and adding them! Hopefully. Also, in a few days it's my account's birthday, so expect a pleasant surprise!

Project Details

Visibility
Visible
Comments
Enabled

More Cool Projects

Project thumbnail
View Project

Spamton G. Spamton simulator

by jawtastic22

Project thumbnail
View Project

ヒラショウ5/HIRASHO5【拡散希望】【RPG】

by Super-Mariokun

Project thumbnail
View Project

Add a button to Beat up Bendy (5)

by Mugtoff

Project thumbnail
View Project

Beat Up Spiffy Pictures Ultimate remix

by jade101717jade

Project thumbnail
View Project

Scratch Shorts Season 5 Episode 3: The New Year

by JBurgers87

Project thumbnail
View Project

falling letters RED

by newbiesoup10

Project thumbnail
View Project

Plants vs. Zombies (PVZ) V1.4 remix

by IQ_Ian

Project thumbnail
View Project

Numberblocks Intro but HELP remix

by skylermimi

Project thumbnail
View Project

[A] Wanted! || WarioWare 2024 Collab

by Cabbage72

Project thumbnail
View Project

Numbericons 000s-900s remix

by younglee08

Project thumbnail
View Project

Talking Roby & Robosplaat (A.K.A Klasky Csupo)

by MeladzeLuka05

Project thumbnail
View Project

Xbox 360.EXE Buttons AA

by jolo0123

Project thumbnail
View Project

Peppa Pig Gets Grounded 3 Classic Remaster PLUS

by Undertale_person5

Project thumbnail
View Project

Resurgence(FNF Broken Strings) crossover edition

by TheMagmaJevin38950

Project thumbnail
View Project

Numberblocks Generator [allowed keys] remix

by SebbieSebSeb

Project thumbnail
View Project

The mine song dank meme

by bennyboy990

Project thumbnail
View Project

やるきのない銀河に願いを Unwilling Milky Way Wishes

by silsil_misil

Project thumbnail
View Project

3D Platformer ✦ Demo v1.91 by TimMcCool

by TimMcCool

Project thumbnail
View Project

Skip counting b 5s

by kabarhimer

Project thumbnail
View Project

All Aiden USTS

by AidenMajewskiYT

Project thumbnail
View Project

Beat Up Bonnie Revolution

by imnotaxiibuss123

Project thumbnail
View Project

Pizza Clicker

by ChewingFruitGum

Project thumbnail
View Project

Blue Mist Remaster- A Learningblock Game

by EmmanuelEjeana95

Project thumbnail
View Project

Rooms: Low Detailed Entity Spawner (W.I.P) remix

by arandomscratcher1298